Hi,
I use log4j, you need to have the library, log4j-1.??.jar (?? is the
version)
in you libs directory, and put the configuration file, log4j.properties, in
your classpath, I put it under the classes directory. That's it.
To get started, you can use my log4j.properties, it starts with (copy
between the ====):
================== start of file
log4j.rootCategory=ERROR, general
log4j.appender.general=org.apache.log4j.ConsoleAppender
log4j.appender.general.layout=org.apache.log4j.PatternLayout
log4j.appender.general.layout.ConversionPattern=%d{[yyyy/MM/dd HH:mm:ss z]}
%-5p %C.%M(%L)%x : %m %n
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L -
%m%n
log4j.logger.org.apache.myfaces=info
log4j.logger.org.apache.myfaces.el=info
================== end of file
-----Original Message-----
From: Jim Graf [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 16, 2006 12:14 PM
To: [email protected]
Subject: How to configure logging
Hi,
I need to trace my webapp (a combination of myfaces and adf) and I found
this:
http://wiki.apache.org/myfaces/LoggingSettings
but as I've never used commons-logging or log4j, I have no idea of how or
where to configure that information. I'm using tomcat 5.0.x and I'm not
using any IDE.
I would appreciate any information or example.
thanks,
jim