public class LoggerFactory
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
LoggerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initLogging()
Initialize Logging from a file "logging.properties" which needs to be found in the classpath.
|
static java.util.logging.Logger |
make() |
static void |
rolloverLogfile()
Resort to reflection to make any FileHandler that is currently active roll-over
the current logfile and start a new one, e.g. this may be useful before a big
batch-job starts to have a clean start of log-entries.
|
static void |
sendCommonsLogToJDKLog()
Set a system property which instructs Apache Commons Logging to use JDK Logging
instead of the default Log4J implementation.
|
public static java.util.logging.Logger make()
public static void initLogging()
throws java.io.IOException
java.io.IOException - If the file "logging.properties" is not found in the classpath.public static void sendCommonsLogToJDKLog()
public static void rolloverLogfile()
java.lang.IllegalStateException - If there is a problem calling the rotate-method of the FileHandler