You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by mos <mo...@inbox.ru> on 2006/10/09 13:44:46 UTC
i don't see logs
Hello
I generation project with appfuse-tapestry-1.9.3-src.zip
in action userList.java code i see logs:
if (log.isDebugEnabled())
{
log.debug("fetching user with username: " + username);
}
in userForm.java:
log.debug("checking for remember me login...");
log.debug("Entering 'cancel' method"); and etc.
how i can see this and all logs in the Tomcat console???? how my enabled
logs in the my project
Thank you
Oleg
--
View this message in context: http://www.nabble.com/i-don%27t-see-logs-tf2409529.html#a6716040
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: i don't see logs
Posted by Jacob Kjome <ho...@visi.com>.
So, what's the name of the logger that you don't see logs for? And how do you
configure log4j? Do you let Log4j load up the config file by picking it up
from the classpath automatically, or do you use some sort of manual
configuration? Are you sure your config file is getting picked up instead of
some other config file? Remember, if a log4j.xml file is found on the
classpath, it will be used in preference to log4j.properties. I've seen this
trip up many a user.
BTW, you should consistently use the term "logger" instead of "category". So,
instead of "rootCategory", you should use "rootLogger". However, the former
will still work and wouldn't be the cause the current issue.
Jake
Quoting mos <mo...@inbox.ru>:
>
> this my log4j.properties file
>
>
> # This is the configuring for logging displayed in the Application Server
> log4j.rootCategory=INFO, stdout
>
> # Replace the line above if you want to put a log file into the directory
> # you start Tomcat from
> # log4j.rootCategory=INFO, stdout, R
>
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>
> # Pattern to output the caller's file name and line number.
> log4j.appender.stdout.layout.ConversionPattern=[@APPNAME@] %p [%t]
> %c{1}.%M(%L) | %m%n
>
> log4j.appender.R=org.apache.log4j.RollingFileAppender
>
> # You can change this to be an absolute path or even an environment variable
> # If you're using an environment variable, you will have to set JAVA_OPTS
> # to contain this variables - for example in the catalina.sh or catalina.bat
> # file
>
> log4j.appender.R.File=@APPNAME@.log
>
> log4j.appender.R.MaxFileSize=100KB
>
> # Don't keep a backup file
> log4j.appender.R.MaxBackupIndex=0
>
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
>
> # Configuration for receiving e-mails when ERROR messages occur.
> log4j.appender.mail=org.apache.log4j.net.SMTPAppender
> log4j.appender.mail.To=@ERROR-MAILTO@
> log4j.appender.mail.From=@ERROR-MAILFROM@
> log4j.appender.mail.SMTPHost=@ERROR-MAILHOST@
> log4j.appender.mail.Threshold=ERROR
> log4j.appender.mail.BufferSize=1
> log4j.appender.mail.Subject=[@ERROR-SERVER@] @APPNAME@ Application Error
>
> log4j.appender.mail.layout=org.apache.log4j.PatternLayout
> log4j.appender.mail.layout.ConversionPattern=%d %-5p %c %x - %m%n
>
> # If programmed properly the most messages would be at DEBUG
> # and the least at FATAL.
> log4j.logger.lt.egos.vats=DEBUG
> log4j.logger.lt.egos.vats.webapp.filter=ERROR
> log4j.logger.lt.egos.vats.webapp.listener.UserCounterListener=WARN
> log4j.logger.lt.egos.vats.util=WARN
>
> # Control logging for other open source packages
> log4j.logger.com.ibatis.db=WARN
> log4j.logger.com.opensymphony.oscache=ERROR
> log4j.logger.net.sf.navigator=ERROR
> log4j.logger.org.acegisecurity=WARN
> log4j.logger.org.apache.commons=ERROR
> log4j.logger.org.apache.tapestry=WARN
> log4j.logger.org.displaytag=ERROR
> log4j.logger.org.springframework=WARN
> log4j.logger.org.apache.velocity=WARN
> log4j.logger.org.tuckey.web.filters=WARN
>
> # Don't show debug logs for WebTest
> log4j.logger.com.canoo.webtest=WARN
> log4j.logger.com.gargoylesoftware.htmlunit=WARN
>
> # All hibernate log output of "info" level or higher goes to stdout.
> # For more verbose logging, change the "info" to "debug" on the last line.
> log4j.logger.org.hibernate.ps.PreparedStatementCache=WARN
> log4j.logger.org.hibernate=WARN
>
> # Changing the log level to DEBUG will result in Hibernate generated
> # SQL to be logged.
> log4j.logger.org.hibernate.SQL=ERROR
>
> # Changing the log level to DEBUG will result in the PreparedStatement
> # bound variable values to be logged.
> log4j.logger.org.hibernate.type=ERROR
>
> thank you very much
>
>
>
>
>
> Jacob Kjome wrote:
> >
> >
> > What does your Log4j config file look like?
> >
> > Jake
> >
> > At 06:44 AM 10/9/2006, you wrote:
> > >
> > >Hello
> > >I generation project with appfuse-tapestry-1.9.3-src.zip
> > >in action userList.java code i see logs:
> > >
> > >if (log.isDebugEnabled())
> > > {
> > > log.debug("fetching user with username: " + username);
> > > }
> > >
> > >in userForm.java:
> > >
> > >log.debug("checking for remember me login...");
> > >log.debug("Entering 'cancel' method"); and etc.
> > >
> > >how i can see this and all logs in the Tomcat console???? how my
> > enabled
> > >logs in the my project
> > >
> > >Thank you
> > >Oleg
> > >
> > >
> > >--
> > >View this message in context:
> > >http://www.nabble.com/i-don%27t-see-logs-tf2409529.html#a6716040
> > >Sent from the Log4j - Users mailing list archive at Nabble.com.
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > >For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/i-don%27t-see-logs-tf2409529.html#a6730465
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: i don't see logs
Posted by mos <mo...@inbox.ru>.
this my log4j.properties file
# This is the configuring for logging displayed in the Application Server
log4j.rootCategory=INFO, stdout
# Replace the line above if you want to put a log file into the directory
# you start Tomcat from
# log4j.rootCategory=INFO, stdout, R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=[@APPNAME@] %p [%t]
%c{1}.%M(%L) | %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
# You can change this to be an absolute path or even an environment variable
# If you're using an environment variable, you will have to set JAVA_OPTS
# to contain this variables - for example in the catalina.sh or catalina.bat
# file
log4j.appender.R.File=@APPNAME@.log
log4j.appender.R.MaxFileSize=100KB
# Don't keep a backup file
log4j.appender.R.MaxBackupIndex=0
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
# Configuration for receiving e-mails when ERROR messages occur.
log4j.appender.mail=org.apache.log4j.net.SMTPAppender
log4j.appender.mail.To=@ERROR-MAILTO@
log4j.appender.mail.From=@ERROR-MAILFROM@
log4j.appender.mail.SMTPHost=@ERROR-MAILHOST@
log4j.appender.mail.Threshold=ERROR
log4j.appender.mail.BufferSize=1
log4j.appender.mail.Subject=[@ERROR-SERVER@] @APPNAME@ Application Error
log4j.appender.mail.layout=org.apache.log4j.PatternLayout
log4j.appender.mail.layout.ConversionPattern=%d %-5p %c %x - %m%n
# If programmed properly the most messages would be at DEBUG
# and the least at FATAL.
log4j.logger.lt.egos.vats=DEBUG
log4j.logger.lt.egos.vats.webapp.filter=ERROR
log4j.logger.lt.egos.vats.webapp.listener.UserCounterListener=WARN
log4j.logger.lt.egos.vats.util=WARN
# Control logging for other open source packages
log4j.logger.com.ibatis.db=WARN
log4j.logger.com.opensymphony.oscache=ERROR
log4j.logger.net.sf.navigator=ERROR
log4j.logger.org.acegisecurity=WARN
log4j.logger.org.apache.commons=ERROR
log4j.logger.org.apache.tapestry=WARN
log4j.logger.org.displaytag=ERROR
log4j.logger.org.springframework=WARN
log4j.logger.org.apache.velocity=WARN
log4j.logger.org.tuckey.web.filters=WARN
# Don't show debug logs for WebTest
log4j.logger.com.canoo.webtest=WARN
log4j.logger.com.gargoylesoftware.htmlunit=WARN
# All hibernate log output of "info" level or higher goes to stdout.
# For more verbose logging, change the "info" to "debug" on the last line.
log4j.logger.org.hibernate.ps.PreparedStatementCache=WARN
log4j.logger.org.hibernate=WARN
# Changing the log level to DEBUG will result in Hibernate generated
# SQL to be logged.
log4j.logger.org.hibernate.SQL=ERROR
# Changing the log level to DEBUG will result in the PreparedStatement
# bound variable values to be logged.
log4j.logger.org.hibernate.type=ERROR
thank you very much
Jacob Kjome wrote:
>
>
> What does your Log4j config file look like?
>
> Jake
>
> At 06:44 AM 10/9/2006, you wrote:
> >
> >Hello
> >I generation project with appfuse-tapestry-1.9.3-src.zip
> >in action userList.java code i see logs:
> >
> >if (log.isDebugEnabled())
> > {
> > log.debug("fetching user with username: " + username);
> > }
> >
> >in userForm.java:
> >
> >log.debug("checking for remember me login...");
> >log.debug("Entering 'cancel' method"); and etc.
> >
> >how i can see this and all logs in the Tomcat console???? how my
> enabled
> >logs in the my project
> >
> >Thank you
> >Oleg
> >
> >
> >--
> >View this message in context:
> >http://www.nabble.com/i-don%27t-see-logs-tf2409529.html#a6716040
> >Sent from the Log4j - Users mailing list archive at Nabble.com.
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/i-don%27t-see-logs-tf2409529.html#a6730465
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: i don't see logs
Posted by Jacob Kjome <ho...@visi.com>.
What does your Log4j config file look like?
Jake
At 06:44 AM 10/9/2006, you wrote:
>
>Hello
>I generation project with appfuse-tapestry-1.9.3-src.zip
>in action userList.java code i see logs:
>
>if (log.isDebugEnabled())
> {
> log.debug("fetching user with username: " + username);
> }
>
>in userForm.java:
>
>log.debug("checking for remember me login...");
>log.debug("Entering 'cancel' method"); and etc.
>
>how i can see this and all logs in the Tomcat console???? how my enabled
>logs in the my project
>
>Thank you
>Oleg
>
>
>--
>View this message in context:
>http://www.nabble.com/i-don%27t-see-logs-tf2409529.html#a6716040
>Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org