By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,251 Members | 2,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,251 IT Pros & Developers. It's quick & easy.

logs are not pring on console java the java file.

P: 2
in console loggers are not printing. can any body tell me the reason. i set the classpath for log4j.jar are log4j.xml. but i am not getting.
Oct 15 '14 #1
Share this Question
Share on Google+
2 Replies

P: 2
logs are not printing on console java the java file
Oct 15 '14 #2

Expert 100+
P: 785
It is impossible to tell the reason without any info about your setup (e.g. what is your classpath, where is your log4j.jar located, what is your code that prints the log, are there any error messages)

Why don't you set a breakpoint at the line that prints the log in the Eclipse debugger and then trace if a log4j-class from the jar will be called?
If it will be called, then maybe in your log4j config file are wrong entries. If it will not be called, then your log4j.jar is not loaded, maybe because your log4j.jar is not in the correct directory given in the classpath.
Oct 15 '14 #3

Post your reply

Sign in to post your reply or Sign up for a free account.