last day (14 days later) » 

6:59 AM
1
Q: slf4j + log4j shows all logs except mine

apinesI am using slf4j with log4j, and for some reason all the logs are showing except the logs that I write in my code - Spring logs, Hibernate logs, you name it logs are showing and in the level configured in log4j.properties. My logs however, are not showing. Maven dependencies: log4j...

 
do you have log4j.xml also, please post
 
no, only log4j.properites, never needed both properties and xml files together.
 
can you try adding log4j.appender.console=DEBUG,org.apache.log4j.ConsoleAppender
 
After adding I'm getting log4j:ERROR Could not instantiate appender named "console".
 
try commenting out log4j.appender.console.target=System.out
 
6:59 AM
I've added more information - the file is being parsed and the specific class also, but still nothing is showed.
@ankur-singhal tried commenting it out, still no change.
 
hi
after commenting same exception
?
 
After commenting the log4j.appender.console.target=System.out still same, nothing is being showed from my classes
 
Never happened to me that everything but mine is being ignored.
 
hmm..
did you intriduced some new changes to existing one
 
7:05 AM
What do you mean?
 
did it ever worked for you
 
I use it in another project and it works great, but it never worked for this project.
It's the most basic log4j.properites file there is :)
 
yeah
and you do not have any other configuration that might be overriding this in your application
 
No code-configuration in my code (perhaps in one of the dependencies but I doubt it), and the -Dlog4j.debug states the my file is being used...
Even if there's code configuration in the dependencies it shouldn't affect mine, and no configuration in my code.
 
7:25 AM
Any more ideas that I can try?
 

last day (14 days later) »