Skip to content
Snippets Groups Projects
Commit 7c910146 authored by OZGCloud's avatar OZGCloud
Browse files

feat(OZG-991) json logs in oc profile

parent d3c45e4e
Branches
Tags
No related merge requests found
......@@ -116,6 +116,13 @@
<artifactId>commons-io</artifactId>
</dependency>
<!-- Logging -->
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<version>6.3</version>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
......
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<include resource="org/springframework/boot/logging/logback/console-appender.xml"/>
<springProfile name="!oc">
<root>
<appender-ref ref="CONSOLE"/>
</root>
</springProfile>
<springProfile name="oc">
<appender name="LOGSTASH" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder"/>
</appender>
<root>
<appender-ref ref="LOGSTASH"/>
</root>
</springProfile>
</configuration>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment