logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evaristo-Jose Camarero (ECE)" <Evaristo-Jose.Camar...@ece.ericsson.se>
Subject RE: TOMCAT and LOG4J
Date Mon, 21 Oct 2002 08:46:55 GMT

Hi all:

I'm using Tomcat, log4j and org.apache.xml.security library.

I use a log4j.properties file to config the logging features.

It works fine until I iniritialize the org.apache.xml.security library. It seems that this
library has a NullApender that it is initialized.

The log of log4j is the next:

(Reading the config from log4j.properties...)
log4j: Level token is [DEBUG].
log4j: Category root set to DEBUG
log4j: Parsing appender named "file".
log4j: Parsing layout options for "file".
log4j: Setting property [conversionPattern] to [%-4r [%t] %-5p %c %x - %m%n].
log4j: End of parsing for "file".
log4j: Setting property [file] to [/home/eceejcr/LIB-PHASE1/IDP/IDP.log].
log4j: setFile called: /home/eceejcr/LIB-PHASE1/IDP/IDP.log, true
log4j: setFile ended
log4j: Parsed "file" options.
log4j: Parsing for [org.apache.xml.security] with value=[OFF].
log4j: Level token is [OFF].
log4j: Category org.apache.xml.security set to OFF
log4j: Handling log4j.additivity.org.apache.xml.security=[null]
log4j: Finished configuring.

But later...
log4j: debug attribute= "".
log4j: Ignoring debug attribute.
log4j: Threshold ="".
log4j: Level value for root is  [fatal].
log4j: root level set to FATAL
log4j: Class name: [org.apache.xml.security.utils.NullAppender]
log4j: Adding appender named [NULL] to category [root].
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache.log4j.xml] additivity to [true].
log4j: Level value for org.apache.log4j.xml is  [info].
log4j: org.apache.log4j.xml level set to INFO
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache.xml.security] additivity to [true].
log4j: Level value for org.apache.xml.security is  [fatal].
log4j: org.apache.xml.security level set to FATAL
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache.xml.security.test.AllTests] additivity to [true].
log4j: Level value for org.apache.xml.security.test.AllTests is  [debug].
log4j: org.apache.xml.security.test.AllTests level set to DEBUG

And stops working properly...

I'm blocked...

Regards,

Evaristo

> -----Original Message-----
> From: Evaristo-Jose Camarero (ECE)
> [mailto:Evaristo-Jose.Camarero@ece.ericsson.se]
> Sent: Friday, October 18, 2002 1:55 PM
> To: 'Log4J Users List'
> Subject: RE: TOMCAT and LOG4J
> 
> 
> 
> Hi all:
> 
> It seems that problem is related with use between Log4j and 
> org.apache.xml.security.
> 
> When I initialize the security library something happens, and 
> the logger stops function properly. It seems that a 
> NullApender from security class is added destroying all the 
> configuration of log4j.properties.
> 
> Any clue?
> 
> Regards,
> 
> Evaristo
> 
> > -----Original Message-----
> > From: sunita desai [mailto:sudesai@cisco.com]
> > Sent: Friday, October 18, 2002 10:16 AM
> > To: Log4J Users List
> > Subject: RE: TOMCAT and LOG4J
> > 
> > 
> > HI,
> > 
> > SOrry I did not try your earlier mail properly.
> > 
> > YEs you need the put the log4j jar in the lib directory as 
> > mentioned by you.
> > Tomcat does not have this jar file.
> > 
> > Regards,
> > Sunita
> > 
> > -----Original Message-----
> > From: Evaristo-Jose Camarero (ECE)
> > [mailto:Evaristo-Jose.Camarero@ece.ericsson.se]
> > Sent: Friday, October 18, 2002 1:37 PM
> > To: 'Log4J Users List'
> > Subject: RE: TOMCAT and LOG4J
> > 
> > 
> > 
> > Hi Sunita and all:
> > 
> > I have tried it but it doesn't work.
> > 
> > What I see, is that the log file is created, but no log is 
> > put inside...
> > 
> > It could be related with this:
> > 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?
> > 
> > Thanks and regards,
> > 
> > Evaristo
> > 
> > > -----Original Message-----
> > > From: sunita desai [mailto:sudesai@cisco.com]
> > > Sent: Friday, October 18, 2002 9:44 AM
> > > To: Log4J Users List
> > > Subject: RE: TOMCAT and LOG4J
> > >
> > >
> > > 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>
> > >
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:log4j-user-> unsubscribe@jakarta.apache.org>
> > For 
> > additional commands, 
> > e-mail: <mailto:log4j-user-help@jakarta.apache.org>
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:log4j-user-> unsubscribe@jakarta.apache.org>
> > For 
> > additional commands, 
> > e-mail: <mailto:log4j-user-help@jakarta.apache.org>
> > 
> 
> --
> To unsubscribe, e-mail:   
<mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
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