This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j does not works because it says there is no appender  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
I have a problem learning log4j , i create a class like :



and a log4j.properties file in the same package that my java class is there.
the properties file is like :


but when i run my application it say :

log4j:WARN No appenders could be found for logger (del_logging.Main).
log4j:WARN Please initialize the log4j system properly.


can some one take a look and help me out ?

Thanks
 
Paul Clapham
Sheriff
Posts: 22472
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That almost always means the properties file isn't in your classpath.
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are running that on the command line add "-Dlog4j.debug" to see some debug on the startup configuration.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!