|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.logger.log.DefaultLog
org.norther.tammi.core.logger.log.DomainLog
public class DomainLog
A default implementation of Log.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.acorn.logger.log.Log |
|---|
ACCESS, DEBUG, ERROR, FATAL, INFO, INTERNAL_ERROR, LEVELS, NONE, TRACE, WARN, WARNING |
| Constructor Summary | |
|---|---|
DomainLog()
Constructs a new log. |
|
DomainLog(String name)
Constructs a new log for a named logger. |
|
| Method Summary | |
|---|---|
int |
getLevel()
Gets the log level. |
protected Localizer |
getLocalizer()
Gets the localizer. |
boolean |
isActive()
Checks whether this log is activated. |
boolean |
isLog(int level)
Checks whether the specified level is enabled. |
void |
log(int level,
long time,
String msg,
Object arg)
Logs a message with a specific level, date and argument. |
void |
log(int level,
long time,
String msg,
Object arg,
Throwable cause)
Logs a message with a specific level, date, argument and reason. |
void |
log(int level,
Object msg)
Logs a message with a specific level. |
void |
log(int level,
String msg,
Object arg)
Logs a message with a specific level and argument. |
void |
log(int level,
String msg,
Object arg,
Throwable cause)
Logs a message with a specific level, argument and reason. |
| Methods inherited from class org.norther.tammi.acorn.logger.log.DefaultLog |
|---|
access, activated, debug, debug, error, error, error, fatal, fatal, fatal, getContext, getLogFactory, getLogger, getLoggerName, info, info, isAccess, isDebug, isError, isFatal, isInfo, isTrace, isWarn, localize, localize, localize, localize, localize, localize, localize, localize, trace, trace, warn, warn, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomainLog()
public DomainLog(String name)
name - the named logger.| Method Detail |
|---|
public boolean isLog(int level)
Log
isLog in interface LogisLog in class DefaultLoglevel - the logging level.
public int getLevel()
Log
getLevel in interface LoggetLevel in class DefaultLog
public void log(int level,
Object msg)
Log
log in interface Loglog in class DefaultLoglevel - the level of the message.msg - the message to log.
public void log(int level,
String msg,
Object arg)
Log
log in interface Loglog in class DefaultLoglevel - the level of the message.msg - the message to log.arg - the argument or cause.
public void log(int level,
String msg,
Object arg,
Throwable cause)
Log
log in interface Loglog in class DefaultLoglevel - the level of the message.msg - the message to log.arg - the argument.cause - the cause.
public void log(int level,
long time,
String msg,
Object arg)
Log
log in interface Loglog in class DefaultLoglevel - the level of the message.time - the time of the event.msg - the message to log.arg - the argument or cause.
public void log(int level,
long time,
String msg,
Object arg,
Throwable cause)
Log
log in interface Loglog in class DefaultLoglevel - 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 LogisActive in class DefaultLogprotected Localizer getLocalizer()
DefaultLog
getLocalizer in class DefaultLog
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||