public class TLcdSystemLog extends 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(Object aObject,
String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
debug(String aMessage)
Deprecated.
Writes the given message to the log.
|
void |
event(Object aObject,
String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
event(String aMessage)
Deprecated.
Writes the given message to the log.
|
void |
fail(Object aObject,
String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
fail(String aMessage)
Deprecated.
Writes the given message to the log.
|
protected static String |
getObjectMessage(Object aObject)
Deprecated.
Creates a reference to an
Object that can be used in log messages. |
void |
out(Object aObject,
String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
out(String aMessage)
Deprecated.
Writes the given message to the log.
|
void |
warn(Object aObject,
String aMessage)
Deprecated.
Writes the given message to the log, along with some information about the calling
Object . |
void |
warn(String aMessage)
Deprecated.
Writes the given message to the log.
|
public void out(String aMessage)
ILcdLogListener
out
in interface ILcdLogListener
aMessage
- a general informative message.public void out(Object aObject, String aMessage)
ILcdLogListener
Object
.out
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a general informative message.public void fail(String aMessage)
ILcdLogListener
fail
in interface ILcdLogListener
aMessage
- a warning message about a program failure.public void fail(Object aObject, String aMessage)
ILcdLogListener
Object
.fail
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a warning message about a program failure.public void warn(String aMessage)
ILcdLogListener
warn
in interface ILcdLogListener
aMessage
- a warning message.public void warn(Object aObject, String aMessage)
ILcdLogListener
Object
.warn
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a warning message.public void debug(String aMessage)
ILcdLogListener
debug
in interface ILcdLogListener
aMessage
- a debugging message.public void debug(Object aObject, String aMessage)
ILcdLogListener
Object
.debug
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a debugging message.public void event(String aMessage)
ILcdLogListener
event
in interface ILcdLogListener
aMessage
- a message about an event that has occurred.public void event(Object aObject, String aMessage)
ILcdLogListener
Object
.event
in interface ILcdLogListener
aObject
- the calling object (`this
').aMessage
- a message about an event that has occurred.protected static String getObjectMessage(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).