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 "Shapira, Yoav" <Yo...@mpi.com> on 2004/09/24 15:34:22 UTC

RE: Quick question...

Hi,
How are you configuring log4j?  Using BasicConfigurator.configure adds a
console appender.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Greg Michalopoulos [mailto:gmichalopoulos@d2hawkeye.com]
>Sent: Friday, September 24, 2004 9:36 AM
>To: 'Log4J Users List'
>Subject: Quick question...
>
>I am using Jrun4 with log4j and I have enabled some logging to a text
file,
>but the entries also get outputted to the console.  Is there any config
so
>that I can turn off the output to the console - while still logging to
the
>file?
>
>Thanks,
>Greg
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: Quick question...

Posted by Greg Michalopoulos <gm...@d2hawkeye.com>.
Config is this (not BasicConfigurator.configure)
_________________________________________________
log4j.logger.UserEntry=info,uentry

### User Entry Log
log4j.appender.uentry=org.apache.log4j.DailyRollingFileAppender
log4j.appender.uentry.File=/WEB-INF/log/user_entry.log
log4j.appender.uentry.DatePattern=yyyy-MM-dd'.txt'
#log4j.appender.uentry.AlwaysDated=true
#log4j.appender.uentry.MaxBackupIndex=1
log4j.appender.uentry.layout=org.apache.log4j.PatternLayout
log4j.appender.uentry.layout.ConversionPattern=UserEntry[%p]-%m%n
__________________________________________________



-----Original Message-----
From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com] 
Sent: Friday, September 24, 2004 9:34 AM
To: Log4J Users List
Subject: RE: Quick question...


Hi,
How are you configuring log4j?  Using BasicConfigurator.configure adds a
console appender.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Greg Michalopoulos [mailto:gmichalopoulos@d2hawkeye.com]
>Sent: Friday, September 24, 2004 9:36 AM
>To: 'Log4J Users List'
>Subject: Quick question...
>
>I am using Jrun4 with log4j and I have enabled some logging to a text
file,
>but the entries also get outputted to the console.  Is there any config
so
>that I can turn off the output to the console - while still logging to
the
>file?
>
>Thanks,
>Greg
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


---------------------------------------------------------------------
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