|
From: Jeff L. <del...@ya...> - 2006-08-21 20:47:53
|
My log4j.properties files pretty much looks the same. Here is mine
----------8<----------
log4j.rootCategory=DEBUG, CONSOLE, DAILY, CHAINSAW
# CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.ImmediateFlush=true
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p [%t][%C{1}]: %m%n
# DAILY ROLLING FILE, roll the file at midnight each and every day
log4j.appender.DAILY=org.apache.log4j.DailyRollingFileAppender
log4j.appender.DAILY.file=./log/directlink.log
log4j.appender.DAILY.Threshold=INFO
log4j.appender.DAILY.DatePattern='.'yyyy-MM-dd
log4j.appender.DAILY.layout=org.apache.log4j.PatternLayout
log4j.appender.DAILY.layout.ConversionPattern=%d %-5p [%t][%C{1}]: %m%n
# CHAINSAW
log4j.appender.CHAINSAW=org.apache.log4j.net.SocketAppender
log4j.appender.CHAINSAW.Threshold=INFO
log4j.appender.CHAINSAW.remoteHost=10.0.1.71
log4j.appender.CHAINSAW.port=4445
log4j.appender.CHAINSAW.locationInfo=true
----------8<----------
I am using CONSOLE, DAILY ROLLING and CHAINSAW. I'm still getting
everything written to wrapper's log file though...
Any thoughts?
--- Mark Modrall <MMo...@gl...> wrote:
> We're in the same boat. We have our logger.properties set like this:
>
> log4j.appender.LOGFILE=org.apache.log4j.FileAppender
> log4j.appender.LOGFILE.File=/logs/output.log
> log4j.appender.LOGFILE.Append=true
> log4j.appender.LOGFILE.Threshold=INFO
> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.LOGFILE.layout.ConversionPattern=[%F %L] %M: %m%n
>
> # Enable INFO messages on the search handler only so it can announce
> itself
> log4j.logger.org.ourclasshierarchy=INFO, LOGFILE
>
> So any class we write will log to our file and anything produced by
> the
> wrapper will go wherever wrapper.conf sends it.
>
> Thanks
> _Mark
>
>
>
>
> This e-mail message, and any attachments, is intended only for the
> use of the individual or entity identified in the alias address of
> this message and may contain information that is confidential,
> privileged and subject to legal restrictions and penalties regarding
> its unauthorized disclosure and use. Any unauthorized review,
> copying, disclosure, use or distribution is strictly prohibited. If
> you have received this e-mail message in error, please notify the
> sender immediately by reply e-mail and delete this message, and any
> attachments, from your system. Thank you.
>
> -----Original Message-----
>
> From: wra...@li...
> [mailto:wra...@li...] On Behalf Of Jeff
> Lanzarotta
> Sent: Monday, August 21, 2006 3:35 PM
> To: Wrapper-User List
> Subject: [Wrapper-user] Logging question
>
> Hello,
>
> I have written an application that used log4j for logging. Right now
> when the application logs a message through log4j, it is written to
> log4j's log file AND wrapper picks up the message and writes it to
> it's
> log... Thus, I have every single message logged twice...
>
> Is there a way to have wrapper NOT log messages from log4j? I really
> only want wrapper to log information specific to 'wrapper' not my
> application...
>
> Thoughts?
>
> Regards,
>
> -Jeff
>
> -Jeff
>
>
------------------------------------------------------------------------
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|