You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jim Graf <jg...@pacbell.net> on 2006/03/16 21:14:10 UTC
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
Re: How to configure logging
Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi Jim,
a example how to configure log4j can found in tobagos example
applications e.g. here:
http://tinyurl.com/psuen
full doku is here:
http://logging.apache.org/log4j/docs/documentation.html
Regards,
Volker
Jim Graf wrote:
> 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
>
>
--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.
RE: How to configure logging
Posted by Lance Frohman <lf...@gmail.com>.
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:jgraf@pacbell.net]
Sent: Thursday, March 16, 2006 12:14 PM
To: users@myfaces.apache.org
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