logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Kjome" <h...@visi.com>
Subject Re: log4j:WARN No appenders could be found for logger (org.springframework.web.conte xt.ContextLoader).
Date Fri, 07 Nov 2008 14:14:02 GMT
Looks to me like the config file is for JUL, not Log4j.  The reason you are 
getting a Log4j warn message is that Log4j is in your classpath, but you don't 
provide log4j.properties or log4j.xml on the classpath.  I suggest figuring 
out which logging system(s) you want and accounting for it/them by providing 
the appropriate config file(s).

Jake

On Fri, 7 Nov 2008 00:46:44 -0800
  "Dong Zhang" <dzhang@seven.com> wrote:
> By default, the log config file name should be log4j.properties, instead
> of logging.properties. Should that be the reason?
> 
> Dong
> 
> -----Original Message-----
>From: Hearty [mailto:heartyraphael@gmail.com] 
> Sent: Wednesday, November 05, 2008 2:18 PM
> To: log4j-user@logging.apache.org
> Subject: log4j:WARN No appenders could be found for logger
> (org.springframework.web.conte xt.ContextLoader).
> 
> 
> I am getting the following error
> 
> log4j:WARN No appenders could be found for logger
> (org.springframework.web.conte
> xt.ContextLoader).
> log4j:WARN Please initialize the log4j system properly.
> 
> 
> The logging.properties I am using is as follows
> 
> handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
> 
> ############################################################
> # Handler specific properties.
> # Describes specific configuration info for Handlers.
> ############################################################
> 
> org.apache.juli.FileHandler.level = ALL
> org.apache.juli.FileHandler.directory = C:/tmp/logs
> org.apache.juli.FileHandler.prefix = fp.
> 
> java.util.logging.ConsoleHandler.level = FINE
> java.util.logging.ConsoleHandler.formatter =
> java.util.logging.SimpleFormatter
> com.telelogic.focalpoint.level = INFO
> com.telelogic.focalpoint.dao.jdbc.Jdbc.level = OFF
> com.telelogic.focalpoint.dao.ViewExecutor.level = OFF
> org.apache.catalina.level = INFO      
> org.springframework.level = INFO
> net.sf.ehcache.distribution.level = INFO
> 
> The logging.properties is placed under WEB-INF/classes
> 
> I don't how to proceed further. 
> 
> Thanks in advance
> -- 
> View this message in context:
> http://www.nabble.com/log4j%3AWARN-No-appenders-could-be-found-for-logge
> r-%28org.springframework.web.conte-xt.ContextLoader%29.-tp20336657p20336
> 657.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 


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


Mime
View raw message