commons-logging: runtime change of properties  
Author Message
cristian.riseri





PostPosted: 2003-10-23 23:14:00 Top

java-programmer, commons-logging: runtime change of properties Hi,

I try to use commons-logging with the logs methods of J2SE 1.4.2 to
generalize the logging in my appl.

Doesn't exists a method to upload the defaul file properties of J2SE
at run time and not usig the -D option at startup?


Exists e method to change the propeties of the logger at runtime? for
example the output file path...



Thanks Cristian
 
Eddie McCreary





PostPosted: 2003-10-24 20:28:00 Top

java-programmer >> commons-logging: runtime change of properties email***@***.com wrote:
> Hi,
>
> I try to use commons-logging with the logs methods of J2SE 1.4.2 to
> generalize the logging in my appl.
>
> Doesn't exists a method to upload the defaul file properties of J2SE
> at run time and not usig the -D option at startup?
>
>
> Exists e method to change the propeties of the logger at runtime? for
> example the output file path...
>
>
>
> Thanks Cristian

See

http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/LogManager.html

readConfiguration() and readConfiguration(InputStream ins).

--
Eddie McCreary Outside of a dog, a book is a man's best
mailto:email***@***.com friend. Inside of a dog, it's too dark
http://www.heorot.org to read. -Groucho Marx