• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem initializing log4j

 
Jan Hoppmann
Ranch Hand
Posts: 147
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have the problem that I get the following output:
log4j:WARN No appenders could be found for logger (com.sivis.util.cli.MockBackend).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

My log4j.xml looks like this:



log4j.xml has been added to the classpath. It's my first time working with log4j, and I have no clue what might be wrong here
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's likely nothing wrong. Is your logging working?
 
Jan Hoppmann
Ranch Hand
Posts: 147
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, it isn't. I try logging with this:



and all I get is this error message. MockBackend looks like this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic