You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Francisco Exposito Aguilera <fc...@hotmail.com> on 2007/09/04 19:04:55 UTC

log4j.xml location issue

Hello,
 
I have the files commons-logging.properties, log4j.dtd and log4j.xml in the root of my eclipse proyect. If I create a jar file with them inside, all the log works properly. But I don´t want to have that files inside a jar. 
 
Can anyone tell me how can I modify the place of them? If I put them outside the jar I receive the error:
 
log4j:WARN No appenders could be found for logger (orquestador).log4j:WARN Please initialize the log4j system properly.
 
Thanks a lot.
_________________________________________________________________
Consigue el nuevo Windows Live Messenger
http://get.live.com/messenger/overview

Re: log4j.xml location issue

Posted by Jacob Kjome <ho...@visi.com>.
At 12:04 PM 9/4/2007, you wrote:
 >
 >Hello,
 >
 >I have the files commons-logging.properties, log4j.dtd and log4j.xml
 >in the root of my eclipse proyect. If I create a jar file with them
 >inside, all the log works properly. But I don´t want to have that
 >files inside a jar.
 >
 >Can anyone tell me how can I modify the place of them? If I put them
 >outside the jar I receive the error:
 >

You don't need log4j.dtd for anything.   The 
Log4j jar provides it.  I can't tell you much of 
anything about commons-logging.properties other 
than, usually you don't need to define 
it.  log4j.xml simply needs to be in the default 
package (i.e. no package).  Just add some 
directory to the classpath and put log4j.xml in that directory; you're done!

Jake

 >log4j:WARN No appenders could be found for logger
 >(orquestador).log4j:WARN Please initialize the log4j system properly.
 >
 >Thanks a lot.
 >_________________________________________________________________
 >Consigue el nuevo Windows Live Messenger
 >http://get.live.com/messenger/overview


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org