public class TLcdSystemLog extends java.lang.Object implementsILcdLogListener
A TLcdSystemLog
is an ILcdLogListener
that writes all log messages either to System.out (out, debug, event)
or to System.err (fail, warn).
Constructor and Description |
---|
TLcdSystemLog()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object aObject,
java.lang.String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
debug(java.lang.String aMessage)
Deprecated.
Writes the given message to the log.
|
void |
event(java.lang.Object aObject,
java.lang.String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
event(java.lang.String aMessage)
Deprecated.
Writes the given message to the log.
|
void |
fail(java.lang.Object aObject,
java.lang.String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
fail(java.lang.String aMessage)
Deprecated.
Writes the given message to the log.
|
protected static java.lang.String |
getObjectMessage(java.lang.Object aObject)
Deprecated.
Creates a reference to an
Object that can be used in log messages. |
void |
out(java.lang.Object aObject,
java.lang.String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
out(java.lang.String aMessage)
Deprecated.
Writes the given message to the log.
|
void |
warn(java.lang.Object aObject,
java.lang.String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
warn(java.lang.String aMessage)
Deprecated.
Writes the given message to the log.
|
public void out(java.lang.String aMessage)
ILcdLogListener
out
in interface ILcdLogListener
aMessage
- a general informative message.public void out(java.lang.Object aObject, java.lang.String aMessage)
ILcdLogListener
Object
.out
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a general informative message.public void fail(java.lang.String aMessage)
ILcdLogListener
fail
in interface ILcdLogListener
aMessage
- a warning message about a program failure.public void fail(java.lang.Object aObject, java.lang.String aMessage)
ILcdLogListener
Object
.fail
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a warning message about a program failure.public void warn(java.lang.String aMessage)
ILcdLogListener
warn
in interface ILcdLogListener
aMessage
- a warning message.public void warn(java.lang.Object aObject, java.lang.String aMessage)
ILcdLogListener
Object
.warn
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a warning message.public void debug(java.lang.String aMessage)
ILcdLogListener
debug
in interface ILcdLogListener
aMessage
- a debugging message.public void debug(java.lang.Object aObject, java.lang.String aMessage)
ILcdLogListener
Object
.debug
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a debugging message.public void event(java.lang.String aMessage)
ILcdLogListener
event
in interface ILcdLogListener
aMessage
- a message about an event that has occurred.public void event(java.lang.Object aObject, java.lang.String aMessage)
ILcdLogListener
Object
.event
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a message about an event that has occurred.protected static java.lang.String getObjectMessage(java.lang.Object aObject)
Object
that can be used in log messages.aObject
- the Object
to refer to.String
that
can be used in the log messages to refer to aObject
.
In this implementation, the name of the class of aObject
is returned (without package indication).