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

Published: 14 April 2024
on channel: crazzylearners
754
3

#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:
> dependency <
> groupId <org.springframework.boot> /groupId <
> artifactId <spring-boot-starter> /artifactId <
> exclusions <
> exclusion <
> groupId <org.springframework.boot> /groupId <
> artifactId <spring-boot-starter-logging> /artifactId <
> /exclusion <
> /exclusions <
> /dependency <

> dependency <
> groupId <org.springframework.boot> /groupId <
> artifactId <spring-boot-starter-web> /artifactId <
> exclusions <
> exclusion <
> groupId <org.springframework.boot> /groupId <
> artifactId <spring-boot-starter-logging> /artifactId <
> /exclusion <
> /exclusions <
> /dependency <


💫 For GRADLE:
configurations {
compile.exclude module: 'spring-boot-starter-logging'
}


Watch video Logging system failed to initialize using configuration from 'classpath:log4j2.yaml' | LOGBACK online without registration, duration hours minute second in high quality. This video was added by user crazzylearners 14 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 75 once and liked it people.