All Questions
6 questions
0
votes
1
answer
1k
views
Using Slf4j with log4j2 not working, throwing ClassNotFoundException: org.slf4j.LoggerFactory
This is a non-Spring app. It's a simple java app with a main. I'm using Lombok @Slf4j with a log4j2.xml config file. Gradle build file contains the following content:
dependencies {
...
...
0
votes
1
answer
176
views
Adding configuration packages results in failing to load class org.slf4j.impl.StaticLoggerBinder
I am working on a Java Spring Boot project.
Once I edit the log4j2.yml to add packages under configurations, I get an SLF4J error saying:
SLF4J: Failed to load class "org.slf4j.impl....
2
votes
0
answers
2k
views
Spring boot stack overflow with log4j [duplicate]
I have a unit test and the only thing I get is a stack overflow as follows:
java.lang.StackOverflowError
at org.apache.logging.log4j.util.StackLocator.getCallerClass(StackLocator.java:125)
at ...
2
votes
1
answer
9k
views
Colored Log output, not parsing '%highlight{...}{..}' in log4j.properties
I am trying to configure my log output using Log4j and a log4j.properties file, but I am having trouble setting up colored output based on log level.
It appears that the logging utilities simply do ...
0
votes
1
answer
136
views
Why log4j2 didn't work?
This is my project structure:
build.gradle
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
jar {
baseName = 'dcv_crawler_engine'
version = '1.0.0-SNAPSHOT'
}
repositories ...
24
votes
3
answers
53k
views
How to exclude multiple SLF4J bindings to LOG4J
I am getting the error
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/george/.gradle/caches/artifacts-26/filestore/org.apache.logging.log4j/log4j-...