Skip to content
Snippets Groups Projects

support json logging

Merged Homada.Boumedane requested to merge hbo_support_json_logging into master
2 files
+ 20
0
Compare changes
  • Side-by-side
  • Inline
Files
2
<configuration>
<springProfile name="basic-log">
<include resource="org/springframework/boot/logging/logback/base.xml"/>
</springProfile>
<!-- When spring profile "prod" or "test" is used, logs are written in JSON format (this is set in order to ease logs consumption
when retrieving logs on K8s server with rancher-logging which parse logs using fluentd service)-->
<springProfile name="json-log">
<appender name="jsonConsoleAppender" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder"/>
</appender>
<root level="INFO">
<appender-ref ref="jsonConsoleAppender"/>
</root>
</springProfile>
</configuration>
\ No newline at end of file
Loading