public class Log extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Log.LEVEL |
| Modifier and Type | Field and Description |
|---|---|
protected LogEngine |
engine |
protected UUID |
id |
protected LevelMapper |
levelMapper |
protected boolean |
localTrace |
protected String |
name |
protected ParameterMapper |
parameterMapper |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close.
|
void |
d(Object... msg)
Log a message in debug, it will automatically append the objects if debug is enabled.
|
void |
e(Object... msg)
Log a message in error, it will automatically append the objects if debug is enabled.
|
void |
f(Object... msg)
Log a message in info, it will automatically append the objects if debug is enabled.
|
UUID |
getId()
Getter for the field
id. |
static Log |
getLog(Object owner)
getLog.
|
String |
getName()
Use the name of the caller
|
ParameterMapper |
getParameterMapper()
Getter for the field
parameterMapper. |
void |
i(Object... msg)
Log a message in info, it will automatically append the objects if debug is enabled.
|
boolean |
isLevelEnabled(Log.LEVEL level)
Return if the given level is enabled.
|
boolean |
isLocalTrace()
isLocalTrace.
|
void |
log(Log.LEVEL level,
Object... msg)
log.
|
protected void |
prepare(StringBuffer sb)
prepare.
|
protected void |
register()
register.
|
void |
setLocalTrace(boolean localTrace)
Setter for the field
localTrace. |
void |
t(Object... msg)
Log a message in trace, it will automatically append the objects if trace is enabled.
|
String |
toString() |
protected void |
unregister()
unregister.
|
void |
update()
update.
|
void |
w(Object... msg)
Log a message in warn, it will automatically append the objects if debug is enabled.
|
protected boolean localTrace
protected String name
protected LevelMapper levelMapper
protected ParameterMapper parameterMapper
protected LogEngine engine
protected UUID id
protected void register()
register.
protected void unregister()
unregister.
public void t(Object... msg)
msg - a Object object.public void d(Object... msg)
msg - a Object object.public void i(Object... msg)
msg - a Object object.public void w(Object... msg)
msg - a Object object.public void e(Object... msg)
msg - a Object object.public void f(Object... msg)
msg - a Object object.protected void prepare(StringBuffer sb)
prepare.
sb - a StringBuffer object.public void setLocalTrace(boolean localTrace)
Setter for the field localTrace.
localTrace - a boolean.public boolean isLocalTrace()
isLocalTrace.
public void update()
update.
public ParameterMapper getParameterMapper()
Getter for the field parameterMapper.
ParameterMapper object.public boolean isLevelEnabled(Log.LEVEL level)
level - a Log.LEVEL object.public void close()
close.
Copyright © 2016. All Rights Reserved.