On Monday 02 April 2001 19:04, you wrote:
> If you instantiate PropertyConfigurator using the following constructor:
>
> PropertyConfigurator.configureAndWatch(baseDir+"/conf/server.properties",15
>0 00);
>
> The first arg is the path to the properties file and the second arg is the
> time in millis that the properties files will be re-read for runtime
> changes.

Thanks Bill. I already glanced over the configureAndWatch method.
Unfortunately it's not exactly what I'm looking for. I need to be able to 
reconfigure the client's logging subsys from the server (using RMI or JMS, 
probably JMS). I cannot edit a config file on the client's machine. Most 
specifically because it's not mine and I have no access to it.
Clients of ours use our library in their own software on their own machines, 
but this library connects to our EJB servers.

Is there any way I can extend log4j so I can reconfigure it on the fly 
through a method invocation? Should I extend BasicConfigurator for that?

Erik
>
> Bill Griffith
>
>
>
>
> -----Original Message-----
> From: Erik van Zijst [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 02, 2001 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: reloading configuration at runtime
>
>
> Hi all,
>
> I've been looking at JLog (IBM) and log4j. I want to use one of these
> logging
> toolkits in our software.
> I have done a number of tests with JLog already and it's quite ok, except
> perhaps for the closed-source issue.
>
> However, log4j looks good as well and I want to give it a fair chance.
>
> It will be used in large distributed applications with EJB's and remote
> clients. One very important requirement is that I must be able to
> reconfigure
> the Appenders and Category priorities at runtime.
>
> I want to have the clients log to EJB's over leased lines. Normally, I'm
> not
>
> interested in DEBUG level messages since they generate way too much
> overhead.
> In an emergency however, I need to be able to change the priorities in the
> Categories in the running client and start receiving a more verbose stream
> of
> log messages on the server.
>
> Is it possible to make such flexible configuration changes? With JLog I
> can.
>
> Their LogManager uses an Observer-like pattern.
>
> I'm hoping for a quick reply. Please note that I haven't joined the
> mailinglist, so please CC any replies to my personal address
> ([EMAIL PROTECTED])
>
> Erik

-- 
snappy repartee:
        What you'd say if you had another chance.

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

Reply via email to