Re: The new logging framework and Java 1.4 logging

2004-04-11 Thread Peter B. West
One of the virtues of 1.4 logging is that (subject to security policies, I think) the level can be set dynamically. If I run a *n*x shell script, I can arrange to catch signals and, among other things, reset the logging level on the fly. Java logging should offer the same capability, especial

Re: The new logging framework and Java 1.4 logging

2004-04-11 Thread Glen Mazza
For some reason interface Log (common to all the logging types) does not have a "setLevel()"--somehow I think that was intentional, however. After all, should FOP actually be setting the logging level? For *embedded use*, that is done by the user--they choose the logger and the level they des

Re: The new logging framework and Java 1.4 logging

2004-04-11 Thread Peter B. West
There is a release candidate for commons-logging v1.4, which includes support for Lumberjack logging, i.e., Java1.4 style logging for 1.3 environments. Peter -- Peter B. West

Re: The new logging framework and Java 1.4 logging

2004-04-11 Thread Peter B. West
Glen, I noticed that, but it seems to rather defeat the purpose of having a common wrapper in the first place. It means that at various points in my code, I have to drop out and start looking at the particular implementation. I suppose it is still an advantage, in that *most* of the code wil

Re: The new logging framework and Java 1.4 logging

2004-04-11 Thread Glen Mazza
There appears a getLogger() that will take you to the native java.util.logging instance: http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/impl/Jdk14Logger.html From there, you should be able to call the native setLevel() of the 1.4 logger: http://java.sun.com/j2se/1.4.2/d

Re: The new logging framework and Java 1.4 logging

2004-04-11 Thread Peter B. West
Glen, As I read the docs, I can have a Log4J, a JDK1.4, or a SimpleLog, depending on 1) my property file or service discovery setup, if any, or the default factory discovery method. The default method (LogFactoryImpl) will 1) give me a Log4J logger, if available 2) give me a 1.4 Logger, if ava

Re: The new logging framework and Java 1.4 logging

2004-04-11 Thread Glen Mazza
I think it's just setLevel() that you're looking for: http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/impl/SimpleLog.html Glen Peter B. West wrote: Glen, I see that you have the move to commons-logging. I was encouraged by this because of the support for 1.4 logging,