diff --git a/log-event-spring-boot-starter/src/main/java/no/digdir/logging/event/EventLoggingConfigFactory.java b/log-event-spring-boot-starter/src/main/java/no/digdir/logging/event/EventLoggingConfigFactory.java index b8f98b7..efe088c 100644 --- a/log-event-spring-boot-starter/src/main/java/no/digdir/logging/event/EventLoggingConfigFactory.java +++ b/log-event-spring-boot-starter/src/main/java/no/digdir/logging/event/EventLoggingConfigFactory.java @@ -19,6 +19,7 @@ @AutoConfiguration class EventLoggingConfigFactory { + @AutoConfiguration @ConditionalOnProperty(prefix = "digdir.event.logging", name = "feature-enabled", havingValue = "true", matchIfMissing = true) @EnableConfigurationProperties(EventLoggingConfigurationProperties.class) public static class Enabled {