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 william young <ge...@yahoo.com> on 2001/02/26 20:55:10 UTC

Multiple calls to PropertyConfigurator.configure(log4jURL)

I need to be able to reconfigure log4j after I have 
already called 
PropertyConfigurator.configure(log4jURL).  We are 
runnning under an app server and want to be able to 
turn off and on different levels of debug, without 
having to change the configuration file and cycle 
the server.  Can't we just edit the config file and
call PropertyConfigurator.configure(log4jURL) multiple

times?

Anyone have any other ideas we should try to
dynamically change logging levels?

Thanks
Bill.

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

RE: Multiple calls to PropertyConfigurator.configure(log4jURL)

Posted by Ceki Gülcü <cg...@qos.ch>.
It has been fixed in 1.0.4. Ceki

At 15:43 26.02.2001 -0800, you wrote:
>Bill,
>
>Try the configureAndWatch() method defined for the Configurator classes,
>instead of configure(). This should achieve what you want. However, there
>was a bug in Log4J ver 0.9.1 that made usage of configureAndWatch()
>error-prone and I have not played with this method since. Anyone know if it
>has been fixed in 1.x.x and above ?
>
>Anand
>
>
>-----Original Message-----
>From: william young [mailto:geddon11@yahoo.com]
>Sent: Monday, February 26, 2001 11:55 AM
>To: log4j-user@jakarta.apache.org
>Subject: Multiple calls to PropertyConfigurator.configure(log4jURL)
>
>
>I need to be able to reconfigure log4j after I have
>already called
>PropertyConfigurator.configure(log4jURL).  We are
>runnning under an app server and want to be able to
>turn off and on different levels of debug, without
>having to change the configuration file and cycle
>the server.  Can't we just edit the config file and
>call PropertyConfigurator.configure(log4jURL) multiple
>
>times?
>
>Anyone have any other ideas we should try to
>dynamically change logging levels?
>
>Thanks
>Bill.
>
>__________________________________________________
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail.
>http://personal.mail.yahoo.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

----
Ceki Gülcü          Web:   http://qos.ch      
av. de Rumine 5     email: cgu@qos.ch (preferred)
CH-1005 Lausanne           ceki_gulcu@yahoo.com
Switzerland         Tel: ++41 21 351 23 15


RE: Multiple calls to PropertyConfigurator.configure(log4jURL)

Posted by Ye Tao <ta...@yahoo.com>.
A similar question: How can i change the logging
behavior at runtime by calling some API instead of
changing the property file and let the watchdog
perform the reconfig? 

I want to have an admin interface through which i can
control the logging behavior. changing the property
file is not an option...for example, turning on and
off some category, change the format even ...

thanks

--- Anand Prahlad <an...@onsiterx.com> wrote:
> Bill,
> 
> Try the configureAndWatch() method defined for the
> Configurator classes,
> instead of configure(). This should achieve what you
> want. However, there
> was a bug in Log4J ver 0.9.1 that made usage of
> configureAndWatch()
> error-prone and I have not played with this method
> since. Anyone know if it
> has been fixed in 1.x.x and above ?


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

RE: Multiple calls to PropertyConfigurator.configure(log4jURL)

Posted by Anand Prahlad <an...@onsiterx.com>.
Bill,

Try the configureAndWatch() method defined for the Configurator classes,
instead of configure(). This should achieve what you want. However, there
was a bug in Log4J ver 0.9.1 that made usage of configureAndWatch()
error-prone and I have not played with this method since. Anyone know if it
has been fixed in 1.x.x and above ?

Anand


-----Original Message-----
From: william young [mailto:geddon11@yahoo.com]
Sent: Monday, February 26, 2001 11:55 AM
To: log4j-user@jakarta.apache.org
Subject: Multiple calls to PropertyConfigurator.configure(log4jURL)


I need to be able to reconfigure log4j after I have
already called
PropertyConfigurator.configure(log4jURL).  We are
runnning under an app server and want to be able to
turn off and on different levels of debug, without
having to change the configuration file and cycle
the server.  Can't we just edit the config file and
call PropertyConfigurator.configure(log4jURL) multiple

times?

Anyone have any other ideas we should try to
dynamically change logging levels?

Thanks
Bill.

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

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