|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.slf4j.helpers.MarkerIgnoringBase org.norther.tammi.acorn.logger.log.DefaultLog org.norther.tammi.core.logger.log.DomainLog
public class DomainLog
A default implementation of Log.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.norther.tammi.acorn.logger.log.Log |
---|
Log.Level |
Field Summary | |
---|---|
protected String |
name
|
Fields inherited from interface org.norther.tammi.acorn.logger.log.Log |
---|
INTERNAL_ERROR |
Fields inherited from interface org.slf4j.Logger |
---|
ROOT_LOGGER_NAME |
Constructor Summary | |
---|---|
DomainLog()
Constructs a new log. |
|
DomainLog(String n)
Constructs a new log for a named logger. |
Method Summary | |
---|---|
Log.Level |
getLevel()
Gets the log level. |
protected Localizer |
getLocalizer()
Gets the localizer. |
String |
getName()
|
boolean |
isActive()
Checks whether this log is activated. |
boolean |
isLogEnabled(Log.Level level)
Checks whether the specified level is enabled. |
void |
log(Log.Level level,
long time,
String msg,
Object arg)
Logs a message with a specific level, date and argument. |
void |
log(Log.Level level,
long time,
String msg,
Object arg,
Throwable cause)
Logs a message with a specific level, date, argument and reason. |
void |
log(Log.Level level,
Object msg)
Logs a message with a specific level. |
void |
log(Log.Level level,
String msg,
Object arg)
Logs a message with a specific level and argument. |
void |
log(Log.Level level,
String msg,
Object arg,
Throwable cause)
Logs a message with a specific level, argument and reason. |
protected Object |
readResolve()
|
Methods inherited from class org.norther.tammi.acorn.logger.log.DefaultLog |
---|
access, activated, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, fatal, fatal, fatal, fatal, getCause, getContext, getLogFactory, getLogger, getLoggerName, info, info, info, info, info, info, isAccessEnabled, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, localize, log, log, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn |
Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase |
---|
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.slf4j.Logger |
---|
debug, debug, debug, debug, debug, error, error, error, error, error, getName, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn |
Field Detail |
---|
protected String name
Constructor Detail |
---|
public DomainLog()
public DomainLog(String n)
n
- the named logger.Method Detail |
---|
public boolean isLogEnabled(Log.Level level)
Log
isLogEnabled
in interface Log
isLogEnabled
in class DefaultLog
level
- the logging level.
public Log.Level getLevel()
Log
getLevel
in interface Log
getLevel
in class DefaultLog
public void log(Log.Level level, Object msg)
Log
log
in interface Log
log
in class DefaultLog
level
- the level of the message.msg
- the message to log.public void log(Log.Level level, String msg, Object arg)
Log
log
in interface Log
log
in class DefaultLog
level
- the level of the message.msg
- the message to log.arg
- the argument or cause.public void log(Log.Level level, String msg, Object arg, Throwable cause)
Log
log
in interface Log
log
in class DefaultLog
level
- the level of the message.msg
- the message to log.arg
- the argument.cause
- the cause.public void log(Log.Level level, long time, String msg, Object arg)
Log
log
in interface Log
log
in class DefaultLog
level
- the level of the message.time
- the time of the event.msg
- the message to log.arg
- the argument or cause.public void log(Log.Level level, long time, String msg, Object arg, Throwable cause)
Log
log
in interface Log
log
in class DefaultLog
level
- the level of the message.time
- the time of the event.msg
- the message to log.arg
- the argument.cause
- the cause.public boolean isActive()
Log
isActive
in interface Log
isActive
in class DefaultLog
protected Localizer getLocalizer()
DefaultLog
getLocalizer
in class DefaultLog
public String getName()
getName
in interface org.slf4j.Logger
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |