logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sunita desai" <sude...@cisco.com>
Subject RE: TOMCAT and LOG4J
Date Fri, 18 Oct 2002 07:44:01 GMT
Hi,

Try adding the layout and ConversionPAttern something like like below
to your properties file.

Rgds,
Sunita

log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

-----Original Message-----
From: Evaristo-Jose Camarero (ECE)
[mailto:Evaristo-Jose.Camarero@ece.ericsson.se]
Sent: Friday, October 18, 2002 1:07 PM
To: 'log4j-user@jakarta.apache.org'
Subject: TOMCAT and LOG4J



Hi all:

I'm using tomcat 4.1.12 and log4j_1.2.5 library. Java 1.3.1_05 and RedHAt
7.1
I am trying to configure my webapp to log to a files, but I'm not able to do
it...

I have some questions:

Is it needed to put the log4j_1.2.5.jar in WEB-INF/lib/ in the webapp or I
can assume that Tomcat supplies that library?

I put log4j.properties file in WEB-INF/classes/ in my web application.

When I start the application the file for logging is created but later is
empty...

I send you my log4j.properties.

 <<log4j.properties>>

Thank you very much,

	Evaristo José Camarero del Río
	Systems Engineer
	UMTS/GSM Systems Management

> Ericsson España, S.A.		Phone:	+34 91 339 4200
> Ombú, 3	 			Fax: 		+34 91 339 2538
> 28045 Madrid, Spain		E-mail: 	evaristo-jose.camarero@ece.ericsson.se
>
>


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message