Back to Browse

Logging system failed to initialize using configuration from 'classpath:log4j2.yaml' | LOGBACK

1.9K views
Apr 14, 2024
5:25

#spring #springboot #java #logs #log4j #logback #yaml #Loggingsystemfailedtoinitializeusingconfigurationfromclasspathlog4j2yaml #javalangillegalstateexception #illegalstateexception #javalangIllegalStateExceptionCouldnotinitializeLogbackloggingfromclasspathlog4j2yaml #excludeunwanteddependencies #maven #gradle Logging system failed to initialize using configuration from 'classpath:log4j2.yaml' java.lang.IllegalStateException: Could not initialize Logback logging from classpath:log4j2.yaml ⭐How to exclude default logging dependecy from spring boot application? 💫 For MAVEN: &gt dependency &lt &gt groupId &ltorg.springframework.boot&gt /groupId &lt &gt artifactId &ltspring-boot-starter&gt /artifactId &lt &gt exclusions &lt &gt exclusion &lt &gt groupId &ltorg.springframework.boot&gt /groupId &lt &gt artifactId &ltspring-boot-starter-logging&gt /artifactId &lt &gt /exclusion &lt &gt /exclusions &lt &gt /dependency &lt &gt dependency &lt &gt groupId &ltorg.springframework.boot&gt /groupId &lt &gt artifactId &ltspring-boot-starter-web&gt /artifactId &lt &gt exclusions &lt &gt exclusion &lt &gt groupId &ltorg.springframework.boot&gt /groupId &lt &gt artifactId &ltspring-boot-starter-logging&gt /artifactId &lt &gt /exclusion &lt &gt /exclusions &lt &gt /dependency &lt 💫 For GRADLE: configurations { compile.exclude module: 'spring-boot-starter-logging' }

Download

0 formats

No download links available.

Logging system failed to initialize using configuration from 'classpath:log4j2.yaml' | LOGBACK | NatokHD