This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logging every method on stdout

 
Kamal Ahmed
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a BaseTest Class with the log4j logger as:

Now, in the test class, i call :

Now, when i run the testMethod() i SHOULD get a Log4J Logging statement on stdout

but, i am not getting Anything on stdout , Any ideas?

Thanks,
-Kamal.
 
Hongli Li
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is the log4j.properties on the classpath?
 
Kamal Ahmed
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hongli Li,

You are right on the dot.

I was not seeing the message because the logging level in log4j.xml was set to WARN



Thanks for the tip
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic