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
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
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:
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
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 http://www.powerup.com.au/~pbwest/resume.html
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
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,
Glen,
I see that you have the move to commons-logging. I was encouraged by
this because of the support for 1.4 logging, which I have started to use
in alt-design. When I looked at modifying the existing alt-design code
to use common-logging, however, I could find no way to set the logging
level