Thanks a lot, setting '-DORG_APACHE_LOG_LEVEL=WARN' in
CATALINA_OPTS and then doing the actual assigning in
each property file works great.

Frank

--- "Ebersole, Steven" <[EMAIL PROTECTED]>
wrote:
> You could switch to an XML config file and use
> ENTITY includes to include a
> file containing your global settings.
> 
> Another option would be to use variable replacement
> in each of your seperate
> configs.  Something like
> "log4j.logger.org.apache=${ORG_APACHE_LOG_LEVEL}";
> then set ORG_APACHE_LOG_LEVEL as a java System
> property to whatever you want
> when starting up your server like -D
> ORG_APACHE_LOG_LEVEL=warn
> 
> HTH
> 
> 
> 
>     |-----Original Message-----
>     |From: John Smith [mailto:[EMAIL PROTECTED]
>     |Sent: Thursday, February 27, 2003 1:25 AM
>     |To: [EMAIL PROTECTED]
>     |Subject: newbie setup question
>     |
>     |
>     |Hi there.  This is probably a simple question
> but I'll
>     |post anyway.
>     |
>     |In each of my webapp directories I've created I
> have a
>     |log4j jar file in WEB-INF/lib and a properties
> file in
>     |WEB-INF/classes.
>     |
>     |Where would be the best place to set, for
> example,
>     |'log4j.logger.org.apache=WARN'?
>     |
>     |I would want this to be sort of a global
> setting.
>     |
>     |Thanks ahead of time.
>     |
>     |Frank
>     |
>     |--
>     |
>     |Just to let you know how I have setup log4j
> here is a
>     |quick example...
>     |
>     |log4j.properties:
>     |
>     |log4j.rootLogger=WARN, A1
>     |
>    
>
|log4j.appender.A1=org.apache.log4j.RollingFileAppender
>     |log4j.appender.A1.MaxFileSize=5MB
>     |log4j.appender.A1.MaxBackupIndex=1
>     |log4j.appender.A1.File=/web/logs/webapp.log
>     |
>     |Then in my class I call:
>     |
>     |static Logger logger =
>     |Logger.getLogger("com.foo.webapp.class);
>     |
>     |then proceed with logging.
>     |
>    
> |__________________________________________________
>     |Do you Yahoo!?
>     |Yahoo! Tax Center - forms, calculators, tips,
> more
>     |http://taxes.yahoo.com/
>     |
>    
>
|-----------------------------------------------------------
>     |----------
>     |To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>     |For additional commands, e-mail:
> [EMAIL PROTECTED]
>     |
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to