struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: regarding log4j
Date Mon, 02 Jan 2006 16:24:03 GMT
Good Call-
Also ..the JAVA_OPTS env var can identify the location e.g.
JAVA_OPTS=  -Dlog4j.configuration=log4j.xml
HTH

----- Original Message ----- 
From: "Holger Moosbauer" <hmoosbauer@tecon.de>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, January 02, 2006 8:41 AM
Subject: AW: regarding log4j


> Tomcat can't find the log4j.properties.
>
> Put the file in the classes directory of your web application.
>
> e.g. ->
>
> og4j.rootCategory = INFO, stdout, fileout
> log4j.appender.stdout = org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
>
> log4j.appender.stdout.layout.ConversionPattern = %5p [%t] (%F:%L) - %m%n
> log4j.appender.fileout = org.apache.log4j.FileAppender
> log4j.appender.fileout.layout = org.apache.log4j.HTMLLayout
> log4j.appender.fileout.append = false
> log4j.appender.fileout.File = $TOMCAT_HOME$/logs/ticr.htm
>
> Hope that helps ... bye
>
> -----Urspr√ľngliche Nachricht-----
> Von: ks_gomathi@mail2.webindia.com
> [mailto:ks_gomathi@mail2.webindia.com]
> Gesendet: Montag, 2. Januar 2006 14:24
> An: user@struts.apache.org
> Betreff: regarding log4j
>
>
>
>
> I am using Tomcat5,
> When I start the Tomcat i faace like this.
> I am using log4j
>
> log4j:WARN No appenders could be found for logger
> (org.apache.catalina.startup.Embedded).
> log4j:WARN Please initialize the log4j system properly.
> inside the init method
> using log
> fileC:\Tomcat5\webapps\catalogServer\WEB-INF/classes/log4j.properties
> 2006-01-02 19:06:27,140 org.apache.coyote.http11.Http11Protocol
> INFO  : Starting Coyote HTTP/1.1 on http-8080
> 2006-01-02 19:06:27,375 org.apache.jk.common.ChannelSocket
> INFO  : JK2: ajp13 listening on /0.0.0.0:8009
> 2006-01-02 19:06:27,375 org.apache.jk.server.JkMain
> INFO  : Jk running ID=0 time=0/32  config=C:\Tomcat5\conf\jk2.properties
> 2006-01-02 19:06:27,421 org.apache.catalina.startup.Catalina
> INFO  : Server startup in 5250 ms
>
> Is it correct for deployment
>
> Any one help me
>
>
> ---------------------------------------------------------------------
> 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
>
> 

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


Mime
View raw message