|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sandev.tools.util.SandLogger
A simple println logger. This is about as straightforward as it gets, and is appropriate for use within a container that wraps and timestamps calls to stdout. Uses minimal prefixing to show the source and level.
| Field Summary | |
protected int |
logLevel
The current SAND log level. |
protected java.lang.String |
sourceID
An identifying sourceID used for log output. |
| Fields inherited from interface org.sandev.basics.nodecommon.Logger |
LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_FATAL, LOGLEVEL_INFO, LOGLEVEL_STR_DEBUG, LOGLEVEL_STR_ERROR, LOGLEVEL_STR_FATAL, LOGLEVEL_STR_INFO, LOGLEVEL_STR_WARN, LOGLEVEL_STRINGS, LOGLEVEL_WARN |
| Constructor Summary | |
SandLogger()
Default ctor does nothing. |
|
| Method Summary | |
int |
getLogLevel()
Return the log level. |
java.lang.String |
getSourceID()
Return the sourceID |
void |
init(java.lang.String instanceName)
Initialize our native logger using the specified instance name |
void |
log(int severity,
java.lang.String msg)
Implementation of the required log method. |
void |
setLogLevel(int logLevel)
Set the log level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int logLevel
protected java.lang.String sourceID
| Constructor Detail |
public SandLogger()
| Method Detail |
public void setLogLevel(int logLevel)
setLogLevel in interface org.sandev.basics.nodecommon.Loggerpublic int getLogLevel()
getLogLevel in interface org.sandev.basics.nodecommon.Loggerpublic java.lang.String getSourceID()
public void init(java.lang.String instanceName)
throws org.sandev.basics.nodecommon.LoggerException
init in interface org.sandev.basics.nodecommon.Loggerorg.sandev.basics.nodecommon.LoggerException
public void log(int severity,
java.lang.String msg)
throws org.sandev.basics.nodecommon.LoggerException
log in interface org.sandev.basics.nodecommon.Loggerorg.sandev.basics.nodecommon.LoggerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||