You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael <mi...@idtect.com> on 2002/08/27 16:23:36 UTC
RE : RE : How can I see log4j output on the console?
I am using both System.out and log.fatal("") and neither appear on the
console.
> -----Original Message-----
> From: Pooleery, Manoj [mailto:Pooleery@Synygy.com]
> Sent: Tuesday, August 27, 2002 2:34 PM
> To: 'Tomcat Users List'
> Subject: RE: RE : How can I see log4j output on the console?
>
>
> Also, instead of using System.out to printout diagnostic
> messages, use logger.debug(" "). This will output the
> messages to the console.
>
> -----Original Message-----
> From: Michael [mailto:michael@idtect.com]
> Sent: Tuesday, August 27, 2002 4:41 AM
> To: 'Tomcat Users List'
> Subject: RE : How can I see log4j output on the console?
>
>
> Here is the log4j.properties file I'm using. I think this is
> more of an issue with Tomcat. I have a servlet that kicks
> off a TimerTask, and my log4j output inside this task does
> show up on the console. But my log4j output from regular
> java classes (called via a servlet) does not.
>
> log4j.rootLogger=debug, screen, file
> log4j.category.com.idtect=
>
> log4j.appender.screen=org.apache.log4j.ConsoleAppender
> log4j.appender.screen.layout=org.apache.log4j.PatternLayout
> log4j.appender.screen.layout.ConversionPattern=%d{ABSOLUTE}
> %-5p %c{1} - %m%n
>
> log4j.appender.file=org.apache.log4j.RollingFileAppender
> log4j.appender.file.File=c:\oemserver.log
> log4j.appender.file.Append=false log4j.appender.file.MaxFileSize=200KB
> log4j.appender.file.MaxBackupIndex=0
> log4j.appender.file.layout=org.apache.log4j.PatternLayout
> log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE}
> %-5p %c{1} - %m%n
>
> > -----Original Message-----
> > From: Andy Eastham [mailto:andy.eastham@gliant.com]
> > Sent: Tuesday, August 27, 2002 10:29 AM
> > To: Tomcat Users List
> > Subject: RE: How can I see log4j output on the console?
> >
> >
> > Michael,
> >
> > Here's an example config file that logs to a file and the console.
> >
> > Andy
> >
> > > -----Original Message-----
> > > From: Michael [mailto:michael@idtect.com]
> > > Sent: 27 August 2002 09:16
> > > To: Tomcat Users List
> > > Subject: How can I see log4j output on the console?
> > >
> > >
> > > My log4j log messages go to a logfile but I'd really like
> > to see them
> > > in the console output. Is it possible to do this??
> > >
> > > Michael
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> > >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>