|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Logger
Logging interface for general logging. The implementations will provide a Debuggable interface for simple stuff.
The interface supports logging/entry management across channels, which is the main reason why I didn't use one the popular libraries.
Version History
EPG - Adapted from another project - 8 JAN 06
| Nested Class Summary | |
|---|---|
static class |
Logger.LEVEL
Level of the logged entry. |
static class |
Logger.TYPE
Types of loggers. |
| Method Summary | |
|---|---|
void |
debug(java.lang.String msg)
Log a trivial debug entry. |
void |
debug(java.lang.String msg,
int numeric)
Log a trivial error entry with a numeric. |
void |
debug(java.lang.String msg,
int numeric,
java.util.Collection<NVImmutable> attributes)
Log a complex debug entry with numerics and attributes. |
void |
debug(java.lang.String msg,
int numeric,
NVImmutable... attributes)
Log a complex debug entry with numerics and attributes. |
void |
debug(java.lang.String msg,
int numeric,
java.lang.String... attributes)
Log a complex debug entry with numerics and attributes. |
void |
error(java.lang.String msg)
Log a trivial error entry. |
void |
error(java.lang.String msg,
int numeric)
Log a trivial error entry with a numeric. |
void |
error(java.lang.String msg,
int numeric,
java.util.Collection<NVImmutable> attributes)
Log a complex error entry with numerics and attributes. |
void |
error(java.lang.String msg,
int numeric,
NVImmutable... attributes)
Log a complex error entry with numerics and attributes. |
void |
error(java.lang.String msg,
int numeric,
java.lang.String... attributes)
Log a complex error entry with numerics and attributes. |
void |
exception(java.lang.Throwable tr)
Log an exception. |
void |
flush()
Tell the underlying system to flush any entries. |
Logger.LEVEL |
getLevel()
This will get the level of entries that will pass. |
void |
info(java.lang.String msg)
Log a trivial information entry. |
void |
info(java.lang.String msg,
int numeric)
Log a trivial information entry with a numeric. |
void |
info(java.lang.String msg,
int numeric,
java.util.Collection<NVImmutable> attributes)
Log a complex information entry with numerics and attributes. |
void |
info(java.lang.String msg,
int numeric,
NVImmutable... attributes)
Log a complex information entry with numerics and attributes. |
void |
info(java.lang.String msg,
int numeric,
java.lang.String... attributes)
Log a complex info entry with numerics and attributes. |
void |
init(Logger.TYPE loggerType)
Initialized the logger. |
void |
post(Entry e)
Post an Entry. |
void |
setLevel(Logger.LEVEL newLevel)
This will set the level of entries that will pass. |
void |
setPostLevel(Logger.LEVEL newLevel)
This will set the default level of StringPoster posted entries. |
void |
shout(java.lang.String msg,
int numeric,
Logger.LEVEL theLevel)
Shout a log entry with numerics. |
void |
shout(java.lang.String msg,
int numeric,
Logger.LEVEL theLevel,
java.util.Collection<NVImmutable> attributes)
Shout a log entry with numerics and attributes. |
void |
shout(java.lang.String msg,
int numeric,
Logger.LEVEL theLevel,
NVImmutable... attributes)
Shout a log entry with numerics and attributes. |
void |
shout(java.lang.String msg,
int numeric,
Logger.LEVEL theLevel,
java.lang.String... attributes)
Shout a log entry with numerics and attributes. |
void |
shout(java.lang.String msg,
Logger.LEVEL theLevel)
Shout a log entry. |
void |
warning(java.lang.String msg)
Log a trivial warning entry. |
void |
warning(java.lang.String msg,
int numeric)
Log a trivial warning entry with a numeric. |
void |
warning(java.lang.String msg,
int numeric,
java.util.Collection<NVImmutable> attributes)
Log a complex warning entry with numerics and attributes. |
void |
warning(java.lang.String msg,
int numeric,
NVImmutable... attributes)
Log a complex warning entry with numerics and attributes. |
void |
warning(java.lang.String msg,
int numeric,
java.lang.String... attributes)
Log a complex warning entry with numerics and attributes. |
| Methods inherited from interface things.common.Debuggable |
|---|
debuggingOff, debuggingOn, debuggingState |
| Methods inherited from interface things.common.StringPoster |
|---|
post, postit |
| Method Detail |
|---|
void init(Logger.TYPE loggerType)
throws SystemException
loggerType - The type of logger this should be. This is more a request than a demand.
SystemExceptionvoid setLevel(Logger.LEVEL newLevel)
newLevel - the new level.Logger.LEVEL getLevel()
void setPostLevel(Logger.LEVEL newLevel)
newLevel - the new default level.
SystemExceptionvoid flush()
flush in interface StringPoster
void post(Entry e)
throws SystemException
e - The entry.
SystemExceptionEntry
void exception(java.lang.Throwable tr)
throws SystemException
tr - The Exception.
SystemException
void error(java.lang.String msg)
throws SystemException
msg - The text message.
SystemException
void error(java.lang.String msg,
int numeric)
throws SystemException
msg - The text message.numeric - The numeric.
SystemException
void error(java.lang.String msg,
int numeric,
NVImmutable... attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
SystemExceptionNVImmutable
void error(java.lang.String msg,
int numeric,
java.util.Collection<NVImmutable> attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - C of NVs representing attributes.
SystemExceptionNVImmutable
void error(java.lang.String msg,
int numeric,
java.lang.String... attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Name/value pairs for attributes. Must be an even number of Strings.
SystemExceptionNV
void warning(java.lang.String msg)
throws SystemException
msg - The text message.
SystemException
void warning(java.lang.String msg,
int numeric)
throws SystemException
msg - The text message.numeric - The numeric.
SystemException
void warning(java.lang.String msg,
int numeric,
java.lang.String... attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Name/value pairs for attributes. Must be an even number of Strings.
SystemException
void warning(java.lang.String msg,
int numeric,
NVImmutable... attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
SystemExceptionNVImmutable
void warning(java.lang.String msg,
int numeric,
java.util.Collection<NVImmutable> attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
SystemExceptionNVImmutable
void info(java.lang.String msg)
throws SystemException
msg - The text message.
SystemException
void info(java.lang.String msg,
int numeric)
throws SystemException
msg - The text message.numeric - The numeric.
SystemException
void info(java.lang.String msg,
int numeric,
java.lang.String... attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Name/value pairs for attributes. Must be an even number of Strings.
SystemException
void info(java.lang.String msg,
int numeric,
NVImmutable... attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
SystemExceptionNVImmutable
void info(java.lang.String msg,
int numeric,
java.util.Collection<NVImmutable> attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
SystemExceptionNVImmutable
void debug(java.lang.String msg)
throws SystemException
msg - The text message.
SystemException
void debug(java.lang.String msg,
int numeric)
throws SystemException
msg - The text message.numeric - The numeric.
SystemException
void debug(java.lang.String msg,
int numeric,
java.lang.String... attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Name/value pairs for attributes. Must be an even number of Strings.
SystemExceptionNV
void debug(java.lang.String msg,
int numeric,
NVImmutable... attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
SystemExceptionNVImmutable
void debug(java.lang.String msg,
int numeric,
java.util.Collection<NVImmutable> attributes)
throws SystemException
msg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
SystemExceptionNVImmutable
void shout(java.lang.String msg,
Logger.LEVEL theLevel)
msg - The text message.theLevel - The level of the message.
void shout(java.lang.String msg,
int numeric,
Logger.LEVEL theLevel,
java.lang.String... attributes)
msg - The text message.numeric - The numeric.theLevel - The level of the message.attributes - Name/value pairs for attributes. Must be an even number of Strings.NV
void shout(java.lang.String msg,
int numeric,
Logger.LEVEL theLevel)
msg - The text message.numeric - The numeric.theLevel - The level of the message.NV
void shout(java.lang.String msg,
int numeric,
Logger.LEVEL theLevel,
NVImmutable... attributes)
msg - The text message.numeric - The numeric.theLevel - The level of the message.attributes - Sequence of NVs representing attributes.NVImmutable
void shout(java.lang.String msg,
int numeric,
Logger.LEVEL theLevel,
java.util.Collection<NVImmutable> attributes)
msg - The text message.numeric - The numeric.theLevel - The level of the message.attributes - Sequence of NVs representing attributes.NVImmutable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||