struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: How to make work Log4j with Struts?
Date Wed, 12 Apr 2006 12:10:08 GMT
Hi Starki,

try this:

log4j.logger.org=WARN
log4j.logger.org.apache.struts=info

ALternatively check out the short manual at jakarta, it will give you a 
concise run-down of what to do.


Adam

starki78 on 12/04/06 08:49, wrote:
> Hi I'm programming Struts 
> by using JDeveloper.
> When I start the
> web-application I always get:
> 
> 06/04/12 09:36:37 log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
> 
> 06/04/12 09:36:37 log4j:WARN Please initialize the log4j system properly.
> 
> The reason why I try to improve logging are internal server errors
> that occur sometimes.
> When I put the same web-project to tomcat I get nearly always more
> meaningful error messages:
> 
> 
> In the classes folder I've this log4j.properties file
> log4j.defaultInitOverride = false
> 
> log4j.rootLogger=debug, stdout, R
> 
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> 
> # Pattern to output the caller's file name and line number.
> log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
> 
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=${catalina.home}/logs/err.log
> 
> log4j.appender.R.MaxFileSize=100KB
> # Keep one backup file
> log4j.appender.R.MaxBackupIndex=1
> 
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
> 
> 
> Can someone help me? The best case would be to have the ability 
> to log also internal Struts-messages
> 
> Thanks Starki 
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


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


Mime
View raw message