Well, I got it working. I put log4j.properties in my WEB-INF/classes directory. Inside the properties file I have this:
log4j.rootLogger=WARN, stdout
log4j.logger.org.apache.myfaces = INFO, stdout
log4j.logger.javax.faces = INFO, stdout
#***************************************
# Appender "stdout"
#***************************************
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} %-5p %c - %m%n
I can't say that this is the best way to do it, but it work for me.
Adam Brod
Product Development Team
| Adam Brod <[EMAIL PROTECTED]>
06/13/2006 09:12 AM
|
|
Hi-
I am having a problem where MyFaces catches a serious error and logs it to log.error(). How do I configure my logging so that those error messages go to the console window?
In my log4j.properties I tried putting org.apache.myfaces = INFO, but that didn't seem to help.
Thanks for any help.
Adam Brod
Product Development Team
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

