public final class LogUtils extends Object
Note: we're not trying to create another logging framework here! We're just trying to use Commons Logging where available, and java.util Logging where it's not. Most web containers will prefer Commons Logging, but we don't want to have to ship commons-logging.jar with, say, a Swing applet.
Modifier and Type | Class and Description |
---|---|
static interface |
LogUtils.Log
Common logging interface.
|
Modifier and Type | Method and Description |
---|---|
static LogUtils.Log |
getLog(Class<?> clazz)
Where possible, returns an implementation of Commons Logging.
|
public static LogUtils.Log getLog(Class<?> clazz)
In general, Commons Logging is the better choice. However, that introduces a mandatory JAR dependency which we want to avoid.
Note: we're not trying to create another logging framework here! We're just trying to use Commons Logging where available, and java.util Logging where it's not. Most web containers will prefer Commons Logging, but we don't want to have to ship commons-logging.jar with, say, a Swing applet.
Copyright © 2015. All Rights Reserved.