public class Log extends Object
Modifier and Type | Method and Description |
---|---|
static void |
debug(Class<?> cls,
String msg) |
static void |
debug(Class<?> cls,
String msg,
Throwable th) |
static void |
debug(org.slf4j.Logger log,
String fmt,
Object... args) |
static void |
debug(Object caller,
String msg) |
static void |
debug(Object caller,
String msg,
Throwable th) |
static void |
debug(String caller,
String msg) |
static void |
disable(Class<?> logger)
Turn on a logger (all levels).
|
static void |
disable(String logger)
Turn on a logger (all levels).
|
static void |
enable(Class<?> logger)
Turn on a logger (all levels).
|
static void |
enable(String logger)
Turn on a logger (all levels).
|
static void |
enable(String logger,
String level) |
static void |
error(org.slf4j.Logger log,
String fmt,
Object... args) |
static void |
fatal(Class<?> cls,
String msg) |
static void |
fatal(Class<?> cls,
String msg,
Throwable th) |
static void |
fatal(Object caller,
String msg) |
static void |
fatal(Object caller,
String msg,
Throwable th) |
static void |
fatal(String caller,
String msg) |
static void |
info(Class<?> cls,
String msg) |
static void |
info(Class<?> cls,
String msg,
Throwable th) |
static void |
info(org.slf4j.Logger log,
String fmt,
Object... args) |
static void |
info(Object caller,
String msg) |
static void |
info(Object caller,
String msg,
Throwable th) |
static void |
info(String caller,
String msg) |
static org.slf4j.Logger |
log(Class<?> cls) |
static org.slf4j.Logger |
log(String loggerName) |
static void |
logLevel(String logger,
org.apache.log4j.Level level1,
Level level2) |
static void |
resetLogging(String config) |
static void |
setCmdLogging()
Set logging, suitable for a command line application.
|
static void |
setCmdLogging(String defaultConfig)
Set logging, suitable for a command line application.
|
static void |
setError(Class<?> logger)
Set to error level.
|
static void |
setError(String logger)
Set to error level.
|
static void |
setInfo(Class<?> logger)
Set to infomation level.
|
static void |
setInfo(String logger)
Set to infomation level.
|
static void |
setJavaLogging() |
static void |
setJavaLogging(String file) |
static void |
setJavaLoggingDft() |
static boolean |
setLog4j()
Set logging
Check for -Dlog4j.configuration.
Looks for log4j.properties file in current directory.
Return true if we think Log4J is not initialized.
|
static void |
setLog4j(String filename)
Set log4j properties (XML or properties file)
|
static void |
setWarn(Class<?> logger)
Set to warning level.
|
static void |
setWarn(String logger)
Set to warning level.
|
static void |
trace(org.slf4j.Logger log,
String fmt,
Object... args) |
static void |
warn(Class<?> cls,
String msg) |
static void |
warn(Class<?> cls,
String msg,
Throwable th) |
static void |
warn(org.slf4j.Logger log,
String fmt,
Object... args) |
static void |
warn(Object caller,
String msg) |
static void |
warn(Object caller,
String msg,
Throwable th) |
static void |
warn(String caller,
String msg) |
public static org.slf4j.Logger log(Class<?> cls)
public static org.slf4j.Logger log(String loggerName)
public static void enable(String logger)
public static void enable(Class<?> logger)
public static void disable(String logger)
public static void disable(Class<?> logger)
public static void setWarn(String logger)
public static void setWarn(Class<?> logger)
public static void setError(String logger)
public static void setError(Class<?> logger)
public static void setInfo(String logger)
public static void setInfo(Class<?> logger)
public static boolean setLog4j()
public static void setLog4j(String filename)
public static void setCmdLogging()
public static void setCmdLogging(String defaultConfig)
public static void resetLogging(String config)
public static void setJavaLogging()
public static void setJavaLogging(String file)
public static void setJavaLoggingDft()
Licenced under the Apache License, Version 2.0