Thank you I also find a good link that helped me!

Cheers!
Starki

http://www.mobilefish.com/developer/log4j/log4j_quickguide_log4jproperties.html

---------- Initial Header -----------

>From      : "Adam Hardy" [EMAIL PROTECTED]
To          : "Struts Users Mailing List" user@struts.apache.org
Cc          :
Date      : Wed, 12 Apr 2006 13:10:08 +0100
Subject : Re: How to make work Log4j with Struts?







> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to