tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Verhoye <peter.verh...@synergetic-solutions.be>
Subject Re: Logging (Log4J) with Tomcat 4.1.x
Date Mon, 04 Jul 2005 17:07:57 GMT
> log4j lib must bin in the Tomcat's common/lib 

There are multiple webapps deployed on the server. Will adding log4j to 
common/lib not activate log for all of them?

BB
Peter

> 
> 
>  2005/7/4, Anoop kumar V <anoopkumarv@gmail.com>: 
> 
>>A log4j mailing list might give u a more effective answer....
>>
>>Try and change the appender to be ConsoleAppender (please check the
>>name) - see if the output displays on the tomcat console.Then u can
>>debug from there...
>>
>>HTH,
>>Anoop
>>
>>On 7/4/05, Peter Verhoye <peter.verhoye@synergetic-solutions.be> wrote:
>>
>>>Hi all,
>>>
>>>I must be getting stupid or so but the logging in my webapp doesn't work
>>>anymore.
>>>
>>>I've the log4j.properties file in WEB-INF/classes
>>>log4j.jar is in WEB-INF/lib
>>>
>>>My properties are:
>>>#
>>># Configures Log4j as the Tomcat system logger
>>>#
>>>
>>>#
>>># Configure the logger to output info level messages into a rolling log
>>>file.
>>>#
>>>log4j.rootLogger=DEBUG, R
>>>
>>>#
>>># Configuration for a rolling log file ("tomcat.log").
>>>#
>>>log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
>>>log4j.appender.R.DatePattern='.'yyyy-MM-dd
>>>#
>>># Edit the next line to point to your logs directory.
>>># The last part of the name is the log file name.
>>>#
>>>log4j.appender.R.File=C:/data/apps/jakarta-tomcat-4.1.31/logs/tomcat.log
>>>log4j.appender.R.layout=org.apache.log4j.PatternLayout
>>>#
>>># Print the date in ISO 8601 format
>>>#
>>>log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
>>>
>>>I don't see the tomcat.log file anywhere :(
>>>
>>>Someone has any idea?
>>>
>>>BB
>>>Peter
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>
>>--
>>Thanks and best regards,
>>Anoop
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
> 
> 

-- 
Peter Verhoye

Synergetic Solutions nv (www.synergetic-solutions.be)
Crystal Palace
Paalstraat 14
B-1080 Brussel
Tel : +32 (0)2 219.10.12
Fax : +32 (0)2 219.40.28
GSM : +32 (0)475 60.12.61


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


Mime
View raw message