Skip to content

Commit

Permalink
Fikset logg konfigurasjon
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Nov 13, 2024
1 parent 5f43fe1 commit ba70b68
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions apps/kafka-key-maintenance/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %5p %c{1}:%L - %m%n</pattern>
</encoder>
</appender>
<appender name="STDOUT_JSON" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder"/>
</appender>

<if condition='isDefined("NAIS_CLUSTER_NAME")'>
<then>
<root level="INFO">
<appender-ref ref="STDOUT_JSON"/>
</root>
</then>
<else>
<root level="INFO">
<appender-ref ref="CONSOLE"/>
</root>
</else>
</if>

<logger name="org.apache.kafka" level="INFO" />
<logger name="io.confluent" level="INFO" />
<logger name="no.nav" level="INFO" />
<logger name="no.nav.paw.pdl.PdlClient" level="WARN"/>
</configuration>

0 comments on commit ba70b68

Please sign in to comment.