|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrendsite.tools.RendsiteLogger
public abstract class RendsiteLogger
Implement a logger. Version History
10NOV09 - EPG - First package release.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface things.thinger.io.Logger |
|---|
things.thinger.io.Logger.LEVEL, things.thinger.io.Logger.TYPE |
| Field Summary | |
|---|---|
protected things.thinger.io.conduits.ConduitID |
conduitId
|
protected things.thinger.io.Logger.LEVEL |
currentLevel
|
protected java.lang.String |
prefixId
|
| Constructor Summary | |
|---|---|
RendsiteLogger(things.common.WhoAmI ownerId,
things.thinger.io.Logger.LEVEL level)
Construct a logger. |
|
| Method Summary | |
|---|---|
abstract RendsiteLogger |
childLogger(things.common.WhoAmI ownerId)
Create a child logger. |
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<things.data.NVImmutable> attributes)
Log a complex debug entry with numerics and attributes. |
void |
debug(java.lang.String msg,
int numeric,
things.data.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 |
debuggingOff()
Turn debugging off. |
void |
debuggingOn()
Turn debugging on. |
boolean |
debuggingState()
Get the current debugging state. |
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<things.data.NVImmutable> attributes)
Log a complex error entry with numerics and attributes. |
void |
error(java.lang.String msg,
int numeric,
things.data.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. |
things.thinger.io.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<things.data.NVImmutable> attributes)
Log a complex information entry with numerics and attributes. |
void |
info(java.lang.String msg,
int numeric,
things.data.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(things.thinger.io.conduits.ConduitID yourId)
Initialize the PushDrain. |
void |
init(things.thinger.io.Logger.TYPE loggerType)
Initialized the logger. |
void |
post(things.data.Entry e)
Post an Entry. |
abstract void |
post(long timestamp,
things.thinger.io.Logger.LEVEL level,
things.data.Data.Priority priority,
int numeric,
java.lang.String text,
java.util.Collection<things.data.NVImmutable> attributes)
Post it. |
void |
post(java.lang.String message)
Post as a message. |
void |
postit(java.lang.String message)
Post as a message. |
things.data.Receipt |
postListener(things.data.Data n)
Listen for a post. |
void |
setLevel(things.thinger.io.Logger.LEVEL newLevel)
This will set the level of entries that will pass. |
void |
setPostLevel(things.thinger.io.Logger.LEVEL newLevel)
This will set the default level of StringPoster posted entries. |
void |
shout(java.lang.String msg,
int numeric,
things.thinger.io.Logger.LEVEL theLevel)
Shout a log entry with numerics. |
void |
shout(java.lang.String msg,
int numeric,
things.thinger.io.Logger.LEVEL theLevel,
java.util.Collection<things.data.NVImmutable> attributes)
Shout a log entry with numerics and attributes. |
void |
shout(java.lang.String msg,
int numeric,
things.thinger.io.Logger.LEVEL theLevel,
things.data.NVImmutable... attributes)
Shout a log entry with numerics and attributes. |
void |
shout(java.lang.String msg,
int numeric,
things.thinger.io.Logger.LEVEL theLevel,
java.lang.String... attributes)
Shout a log entry with numerics and attributes. |
void |
shout(java.lang.String msg,
things.thinger.io.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<things.data.NVImmutable> attributes)
Log a complex warning entry with numerics and attributes. |
void |
warning(java.lang.String msg,
int numeric,
things.data.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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface things.thinger.io.Logger |
|---|
flush |
| Field Detail |
|---|
protected java.lang.String prefixId
protected things.thinger.io.conduits.ConduitID conduitId
protected things.thinger.io.Logger.LEVEL currentLevel
| Constructor Detail |
|---|
public RendsiteLogger(things.common.WhoAmI ownerId,
things.thinger.io.Logger.LEVEL level)
throws things.thinger.SystemException
ownerId - the owner id. The tag will be available as a prefix to the specific log posters.level - the starting log level.
things.thinger.SystemException| Method Detail |
|---|
public abstract void post(long timestamp,
things.thinger.io.Logger.LEVEL level,
things.data.Data.Priority priority,
int numeric,
java.lang.String text,
java.util.Collection<things.data.NVImmutable> attributes)
timestamp - level - priority - numeric - text - attributes - it may be null.
public abstract RendsiteLogger childLogger(things.common.WhoAmI ownerId)
throws things.thinger.SystemException
ownerId -
things.thinger.SystemException
public void post(java.lang.String message)
throws things.common.ThingsException
post in interface things.common.StringPostermessage - String to post
things.common.ThingsExceptionpublic void postit(java.lang.String message)
postit in interface things.common.StringPostermessage - String to postpublic void setLevel(things.thinger.io.Logger.LEVEL newLevel)
setLevel in interface things.thinger.io.LoggernewLevel - the new level.public things.thinger.io.Logger.LEVEL getLevel()
getLevel in interface things.thinger.io.Loggerpublic void setPostLevel(things.thinger.io.Logger.LEVEL newLevel)
setPostLevel in interface things.thinger.io.LoggernewLevel - the new default level.
things.thinger.SystemException
public void init(things.thinger.io.conduits.ConduitID yourId)
throws things.thinger.SystemException
init in interface things.thinger.io.conduits.PushDrainyourId - The ConduitID for this PushDrain.
things.thinger.SystemExceptionConduitID
public things.data.Receipt postListener(things.data.Data n)
throws things.thinger.SystemException
postListener in interface things.thinger.io.conduits.PushDrainn - The data to post.
things.thinger.SystemException
public void init(things.thinger.io.Logger.TYPE loggerType)
throws things.thinger.SystemException
init in interface things.thinger.io.LoggerloggerType - The type of logger this should be. This is more a request than a demand.
things.thinger.SystemExceptionpublic void debuggingOn()
debuggingOn in interface things.common.Debuggablepublic void debuggingOff()
debuggingOff in interface things.common.Debuggablepublic boolean debuggingState()
debuggingState in interface things.common.Debuggable
public void post(things.data.Entry e)
throws things.thinger.SystemException
post in interface things.thinger.io.Loggere - The entry.
things.thinger.SystemExceptionEntry
public void exception(java.lang.Throwable tr)
throws things.thinger.SystemException
exception in interface things.thinger.io.Loggertr - The Exception.
things.thinger.SystemException
public void error(java.lang.String msg)
throws things.thinger.SystemException
error in interface things.thinger.io.Loggermsg - The text message.
things.thinger.SystemException
public void error(java.lang.String msg,
int numeric)
throws things.thinger.SystemException
error in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.
things.thinger.SystemException
public void error(java.lang.String msg,
int numeric,
things.data.NVImmutable... attributes)
throws things.thinger.SystemException
error in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
things.thinger.SystemExceptionNVImmutable
public void error(java.lang.String msg,
int numeric,
java.util.Collection<things.data.NVImmutable> attributes)
throws things.thinger.SystemException
error in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
things.thinger.SystemExceptionNVImmutable
public void error(java.lang.String msg,
int numeric,
java.lang.String... attributes)
throws things.thinger.SystemException
error in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Name/value pairs for attributes. Must be an even number of Strings.
things.thinger.SystemException
public void warning(java.lang.String msg)
throws things.thinger.SystemException
warning in interface things.thinger.io.Loggermsg - The text message.
things.thinger.SystemException
public void warning(java.lang.String msg,
int numeric)
throws things.thinger.SystemException
warning in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.
things.thinger.SystemException
public void warning(java.lang.String msg,
int numeric,
things.data.NVImmutable... attributes)
throws things.thinger.SystemException
warning in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
things.thinger.SystemExceptionNVImmutable
public void warning(java.lang.String msg,
int numeric,
java.util.Collection<things.data.NVImmutable> attributes)
throws things.thinger.SystemException
warning in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
things.thinger.SystemExceptionNVImmutable
public void warning(java.lang.String msg,
int numeric,
java.lang.String... attributes)
throws things.thinger.SystemException
warning in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Name/value pairs for attributes. Must be an even number of Strings.
things.thinger.SystemException
public void info(java.lang.String msg)
throws things.thinger.SystemException
info in interface things.thinger.io.Loggermsg - The text message.
things.thinger.SystemException
public void info(java.lang.String msg,
int numeric)
throws things.thinger.SystemException
info in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.
things.thinger.SystemException
public void info(java.lang.String msg,
int numeric,
things.data.NVImmutable... attributes)
throws things.thinger.SystemException
info in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
things.thinger.SystemExceptionNVImmutable
public void info(java.lang.String msg,
int numeric,
java.util.Collection<things.data.NVImmutable> attributes)
throws things.thinger.SystemException
info in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
things.thinger.SystemExceptionNVImmutable
public void info(java.lang.String msg,
int numeric,
java.lang.String... attributes)
throws things.thinger.SystemException
info in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Name/value pairs for attributes. Must be an even number of Strings.
things.thinger.SystemException
public void debug(java.lang.String msg)
throws things.thinger.SystemException
debug in interface things.thinger.io.Loggermsg - The text message.
things.thinger.SystemException
public void debug(java.lang.String msg,
int numeric)
throws things.thinger.SystemException
debug in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.
things.thinger.SystemException
public void debug(java.lang.String msg,
int numeric,
things.data.NVImmutable... attributes)
throws things.thinger.SystemException
debug in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
things.thinger.SystemExceptionNVImmutable
public void debug(java.lang.String msg,
int numeric,
java.util.Collection<things.data.NVImmutable> attributes)
throws things.thinger.SystemException
debug in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Sequence of NVs representing attributes.
things.thinger.SystemExceptionNVImmutable
public void debug(java.lang.String msg,
int numeric,
java.lang.String... attributes)
throws things.thinger.SystemException
debug in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.attributes - Name/value pairs for attributes. Must be an even number of Strings.
things.thinger.SystemException
public void shout(java.lang.String msg,
things.thinger.io.Logger.LEVEL theLevel)
shout in interface things.thinger.io.Loggermsg - The text message.theLevel - The level of the message.
public void shout(java.lang.String msg,
int numeric,
things.thinger.io.Logger.LEVEL theLevel)
shout in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.theLevel - The level of the message.
public void shout(java.lang.String msg,
int numeric,
things.thinger.io.Logger.LEVEL theLevel,
things.data.NVImmutable... attributes)
shout in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.theLevel - The level of the message.attributes - Sequence of NVs representing attributes.NVImmutable
public void shout(java.lang.String msg,
int numeric,
things.thinger.io.Logger.LEVEL theLevel,
java.util.Collection<things.data.NVImmutable> attributes)
shout in interface things.thinger.io.Loggermsg - The text message.numeric - The numeric.theLevel - The level of the message.attributes - Sequence of NVs representing attributes.NVImmutable
public void shout(java.lang.String msg,
int numeric,
things.thinger.io.Logger.LEVEL theLevel,
java.lang.String... attributes)
shout in interface things.thinger.io.Loggermsg - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||