File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
Locating Log4j.properties in Eclipse 3.2?
How to call login.jsp in eclipse
Log4J configuration problem
error in log4j.properties
log4j:WARN Please initialize the log4j system properly
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014