class DefaultLog extends LogFactory implements Log
FATAL_LEVEL
Constructor and Description |
---|
DefaultLog()
Used to build a factory.
|
DefaultLog(String name)
Used to encapsulated a jul logger.
|
Modifier and Type | Method and Description |
---|---|
protected DefaultLog |
createLogger(Class<?> clazz)
Creates logger named with full qualified class name.
|
protected DefaultLog |
createLogger(String loggerName)
Creates logger with provided name.
|
void |
debug(String message)
Log a message with debug log level.
|
void |
debug(String message,
Throwable t)
Log an error with debug log level.
|
void |
error(String message)
Log a message with error log level.
|
void |
error(String message,
Throwable t)
Log an error with error log level.
|
void |
fatal(String message)
Log a message with fatal log level.
|
void |
fatal(String message,
Throwable t)
Log an error with fatal log level.
|
String |
getName() |
void |
info(String message)
Log a message with info log level.
|
void |
info(String message,
Throwable t)
Log an error with info log level.
|
boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
boolean |
isErrorEnabled()
Is error logging currently enabled?
|
boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
boolean |
isInfoEnabled()
Is info logging currently enabled?
|
boolean |
isTraceEnabled()
Is trace logging currently enabled?
|
boolean |
isWarnEnabled()
Is warn logging currently enabled?
|
void |
trace(String message)
Log a message with trace log level.
|
void |
trace(String message,
Throwable t)
Log an error with trace log level.
|
void |
warn(String message)
Log a message with warn log level.
|
void |
warn(String message,
Throwable t)
Log an error with warn log level.
|
getLog, getLog
DefaultLog()
DefaultLog(String name)
name
- protected DefaultLog createLogger(Class<?> clazz)
LogFactory
createLogger
in class LogFactory
clazz
- The logger will have the qualified class name as name.protected DefaultLog createLogger(String loggerName)
LogFactory
createLogger
in class LogFactory
loggerName
- The logger will have the provided name.public boolean isTraceEnabled()
Log
isTraceEnabled
in interface Log
public boolean isDebugEnabled()
Log
isDebugEnabled
in interface Log
public boolean isInfoEnabled()
Log
isInfoEnabled
in interface Log
public boolean isWarnEnabled()
Log
isWarnEnabled
in interface Log
public boolean isErrorEnabled()
Log
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
Log
isFatalEnabled
in interface Log
public void trace(String message)
Log
public void trace(String message, Throwable t)
Log
public void debug(String message)
Log
public void debug(String message, Throwable t)
Log
public void info(String message)
Log
public void info(String message, Throwable t)
Log
public void warn(String message)
Log
public void warn(String message, Throwable t)
Log
public void error(String message)
Log
public void error(String message, Throwable t)
Log
public void fatal(String message)
Log
public void fatal(String message, Throwable t)
Log