Skip to content

Commit

Permalink
Fix for logback oppsett
Browse files Browse the repository at this point in the history
#deploy-endringsmelding-frontend
#deploy-endringsmelding-service
#deploy-tps-messaging-service
#deploy-test-frontend
  • Loading branch information
stigus committed Apr 10, 2024
1 parent e4d9de9 commit f1ed065
Show file tree
Hide file tree
Showing 78 changed files with 173 additions and 84 deletions.
3 changes: 2 additions & 1 deletion apps/adresse-service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
3 changes: 2 additions & 1 deletion apps/amelding-service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
3 changes: 2 additions & 1 deletion apps/brreg-stub/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
6 changes: 4 additions & 2 deletions apps/bruker-service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand All @@ -24,7 +25,8 @@

<springProfile name="dev">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
3 changes: 2 additions & 1 deletion apps/budpro-service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod,dev">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
3 changes: 2 additions & 1 deletion apps/dolly-backend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod,dev">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
3 changes: 2 additions & 1 deletion apps/dolly-frontend/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod,dev,idporten">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
3 changes: 2 additions & 1 deletion apps/dollystatus/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
3 changes: 2 additions & 1 deletion apps/kodeverk-service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
3 changes: 2 additions & 1 deletion apps/miljoer-service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.reactivecore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<configuration>
<springProfile name="prod">
<appender name="stdout_json" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="no.nav.testnav.libs.servletcore.logging.DollyLogbackEncoder">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="no.nav.testnav.libs.servletcore.logging.DollyLogbackLayout"/>
<throwableConverter class="net.logstash.logback.stacktrace.ShortenedThrowableConverter">
<rootCauseFirst>true</rootCauseFirst>
<maxDepthPerThrowable>256</maxDepthPerThrowable>
Expand Down
Loading

0 comments on commit f1ed065

Please sign in to comment.