A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Open Source Projects
Log 4j config issue
Joined: Nov 25, 2003
Nov 10, 2008 04:53:00
I have a standalone application developed in Eclipse. Application is using log4j. Logs are genrating fine when I am running it from eclipse.
When I try to run the main class through command prompt, I am getting the error "log4j:WARN No appenders could be found for logger"
I have put the log4j.properties file in classpath also.
It is not giving error for the main class file, it gives the name of the class called with in the main class.
for example -
static Logger log = Logger.getLogger(A.class);
B b = new B();
static Logger log = Logger.getLogger(B.class);
log4j:WARN No appenders could be found for logger (B).
log4j:WARN Please initialize the log4j system properly.
Please provide some pointers.
I agree. Here's the link:
subject: Log 4j config issue
error in log4j.properties
log4j:WARN Please initialize the log4j system properly
How to call login.jsp in eclipse
Locating Log4j.properties in Eclipse 3.2?
Log4J configuration problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014