diff --git a/apps/levende-arbeidsforhold-ansettelse/src/main/resources/logback-spring.xml b/apps/levende-arbeidsforhold-ansettelse/src/main/resources/logback-spring.xml index f0202f7a1f7..da5bd9c293d 100644 --- a/apps/levende-arbeidsforhold-ansettelse/src/main/resources/logback-spring.xml +++ b/apps/levende-arbeidsforhold-ansettelse/src/main/resources/logback-spring.xml @@ -1,8 +1,8 @@ - - + + @@ -15,8 +15,8 @@ - - + + diff --git a/libs/reactive-core/src/main/java/no/nav/testnav/libs/reactivecore/logging/TestnavLogbackEncoder.java b/libs/reactive-core/src/main/java/no/nav/testnav/libs/reactivecore/logging/TestnavLogbackEncoder.java index 27986d996bf..add94f247f1 100644 --- a/libs/reactive-core/src/main/java/no/nav/testnav/libs/reactivecore/logging/TestnavLogbackEncoder.java +++ b/libs/reactive-core/src/main/java/no/nav/testnav/libs/reactivecore/logging/TestnavLogbackEncoder.java @@ -3,6 +3,7 @@ import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.classic.spi.ThrowableProxy; import com.fasterxml.jackson.core.JsonFactory; +import lombok.Setter; import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; import net.logstash.logback.encoder.LogstashEncoder; @@ -14,45 +15,50 @@ import static java.util.Objects.nonNull; +/** + * Config: + *
  • {@code maxStackTraceLength}: Default 480, set to a negative number to disable truncation of stack trace altogether.
  • + */ @Slf4j public class TestnavLogbackEncoder extends LogstashEncoder { // matches exactly 11 digits (\\d{11}) that are not immediately preceded ((?