public class Log extends java.lang.Object implements LogSource
LogSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEBUG |
static java.lang.String |
ERROR |
static java.lang.String |
FATAL |
static java.lang.String |
INFO |
protected Logger |
logger |
protected java.lang.String |
realm |
static java.lang.String |
TRACE |
static java.lang.String |
WARN |
Constructor and Description |
---|
Log() |
Log(Logger logger,
java.lang.String realm) |
Modifier and Type | Method and Description |
---|---|
LogEvent |
createDebug() |
LogEvent |
createDebug(java.lang.Object detail) |
LogEvent |
createError() |
LogEvent |
createError(java.lang.Object detail) |
LogEvent |
createFatal() |
LogEvent |
createFatal(java.lang.Object detail) |
LogEvent |
createInfo() |
LogEvent |
createInfo(java.lang.Object detail) |
LogEvent |
createLogEvent(java.lang.String level) |
LogEvent |
createLogEvent(java.lang.String level,
java.lang.Object detail) |
LogEvent |
createTrace() |
LogEvent |
createTrace(java.lang.Object detail) |
LogEvent |
createWarn() |
LogEvent |
createWarn(java.lang.Object detail) |
void |
debug(java.lang.Object detail) |
void |
debug(java.lang.Object detail,
java.lang.Object obj) |
void |
error(java.lang.Object detail) |
void |
error(java.lang.Object detail,
java.lang.Object obj) |
void |
fatal(java.lang.Object detail) |
void |
fatal(java.lang.Object detail,
java.lang.Object obj) |
static Log |
getLog(java.lang.String logName,
java.lang.String realm) |
Logger |
getLogger() |
java.lang.String |
getRealm() |
void |
info(java.lang.Object detail) |
void |
info(java.lang.Object detail,
java.lang.Object obj) |
void |
setLogger(Logger logger) |
void |
setLogger(Logger logger,
java.lang.String realm) |
void |
setRealm(java.lang.String realm) |
void |
trace(java.lang.Object detail) |
void |
trace(java.lang.Object detail,
java.lang.Object obj) |
void |
warn(java.lang.Object detail) |
void |
warn(java.lang.Object detail,
java.lang.Object obj) |
protected Logger logger
protected java.lang.String realm
public static final java.lang.String TRACE
public static final java.lang.String DEBUG
public static final java.lang.String INFO
public static final java.lang.String WARN
public static final java.lang.String ERROR
public static final java.lang.String FATAL
public Log()
public Log(Logger logger, java.lang.String realm)
public static Log getLog(java.lang.String logName, java.lang.String realm)
public void setLogger(Logger logger, java.lang.String realm)
public void setLogger(Logger logger)
public void setRealm(java.lang.String realm)
public void trace(java.lang.Object detail)
public void trace(java.lang.Object detail, java.lang.Object obj)
public void debug(java.lang.Object detail)
public void debug(java.lang.Object detail, java.lang.Object obj)
public void info(java.lang.Object detail)
public void info(java.lang.Object detail, java.lang.Object obj)
public void warn(java.lang.Object detail)
public void warn(java.lang.Object detail, java.lang.Object obj)
public void error(java.lang.Object detail)
public void error(java.lang.Object detail, java.lang.Object obj)
public void fatal(java.lang.Object detail)
public void fatal(java.lang.Object detail, java.lang.Object obj)
public LogEvent createLogEvent(java.lang.String level)
public LogEvent createLogEvent(java.lang.String level, java.lang.Object detail)
public LogEvent createTrace()
public LogEvent createTrace(java.lang.Object detail)
public LogEvent createDebug()
public LogEvent createDebug(java.lang.Object detail)
public LogEvent createInfo()
public LogEvent createInfo(java.lang.Object detail)
public LogEvent createWarn()
public LogEvent createWarn(java.lang.Object detail)
public LogEvent createError()
public LogEvent createError(java.lang.Object detail)
public LogEvent createFatal()
public LogEvent createFatal(java.lang.Object detail)