Skip to content

Commit

Permalink
Fix logging for production profile (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sille Kamoen authored and martijnjanssen committed Jan 14, 2018
1 parent b9a6e84 commit a016258
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
</root>
</springProfile>

<springProfile name="prod">
<springProfile name="production">
<include resource="org/springframework/boot/logging/logback/console-appender.xml"/>
<appender name="ROLLING-FILE"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
Expand Down Expand Up @@ -66,6 +67,7 @@
</appender>

<root level="ERROR">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="ROLLING-FILE"/>
</root>
</springProfile>
Expand Down

0 comments on commit a016258

Please sign in to comment.