public abstract class AbstractSimpleImpl extends Object implements Logger
| Modifier and Type | Field and Description |
|---|---|
protected int |
level |
| Constructor and Description |
|---|
AbstractSimpleImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object m)
Logs the message m with debug priority.
|
void |
debug(Object m,
Throwable t) |
void |
error(Object m)
Logs the message m with error priority.
|
void |
error(Object m,
Throwable t) |
void |
fatal(Object m)
Logs the message m with fatal priority.
|
void |
fatal(Object m,
Throwable t) |
void |
info(Object m)
Logs the message m with info priority.
|
void |
info(Object m,
Throwable t) |
boolean |
isDebugEnabled()
Returns true if for this category (Logger), a call to debug (or
trace) would do something.
|
boolean |
isEnabledFor(Level l) |
boolean |
isServiceEnabled()
Returns true if for this category (Logger), a call to service
(or debug or trace) would do something.
|
boolean |
isTraceEnabled()
Returns true if for this category (Logger), a call to trace
would do something.
|
protected void |
log(Object s,
Level level)
Override to implement different stringification of objects to log.
|
protected void |
log(Object s,
Level level,
Throwable t) |
protected void |
log(String s)
How to write one string.
|
protected void |
log(String s,
Level level)
Logs a message for a certain string.
|
void |
service(Object m)
Logs the message m with service priority.
|
void |
service(Object m,
Throwable t) |
void |
setLevel(Level p)
If you want to override the level in the configuration file
fixed for this category, you can do it with this method.
|
void |
trace(Object m)
Logs the message m with trace priority.
|
void |
trace(Object m,
Throwable t) |
void |
warn(Object m)
Logs the message m with warn priority.
|
void |
warn(Object m,
Throwable t) |
public void setLevel(Level p)
Loggerprotected void log(String s)
log(String, Level). Default this does
nothing, you must override this, or log(String, Level).protected void log(String s, Level level)
log(String) where the string is
prefixed with the level. Override this one if you want it differently.protected void log(Object s, Level level)
public void trace(Object m)
Loggertrace in interface LoggerLogger.debug(Object)public void debug(Object m)
Loggerpublic void service(Object m)
Loggerpublic void info(Object m)
Loggerpublic void warn(Object m)
Loggerpublic void error(Object m)
Loggerpublic void fatal(Object m)
Loggerpublic boolean isTraceEnabled()
LoggerisTraceEnabled in interface Loggerpublic boolean isDebugEnabled()
LoggerisDebugEnabled in interface Loggerpublic boolean isServiceEnabled()
LoggerisServiceEnabled in interface Loggerpublic boolean isEnabledFor(Level l)
isEnabledFor in interface LoggerMMBase 1.9-SNAPSHOT - ${javadoctimestamp}