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 Hearty <he...@gmail.com> on 2008/11/05 07:18:00 UTC

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-logger-%28org.springframework.web.conte-xt.ContextLoader%29.-tp20336657p20336657.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


Re: log4j:WARN No appenders could be found for logger (org.springframework.web.conte xt.ContextLoader).

Posted by Jacob Kjome <ho...@visi.com>.
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" <dz...@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


RE: log4j:WARN No appenders could be found for logger (org.springframework.web.conte xt.ContextLoader).

Posted by Dong Zhang <dz...@seven.com>.
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