sdsu.logging
Class LoggerContext
java.lang.Object
|
+--sdsu.logging.LoggerContext
- public abstract class LoggerContext
- extends java.lang.Object
- implements java.io.Serializable
LoggerContext and its subclasses are used by sdsu.logging.Logger.
Contexts allow storage of information between individual messages.
Java does not lend it self to using context as used in the orginal
article listed below.
The logging system is based on the logging pattern by
Neil Harrison in Pattern Languages of Program Design 3
Eds Martin, Riehle, Buschman, 1998, pp 277-289
- Version:
- 1.0 11 January 1998
- Author:
- Roger Whitney
(whitney@cs.sdsu.edu)
- See Also:
Logger
,
LoggerMessage
, Serialized Form
Method Summary |
java.lang.String |
displayString()
Displays a string to be displayed on the screen for this
context. |
java.lang.String |
logString()
Displays a string to be saved in a log for this
context. |
void |
setMessage(LoggerMessage newMessage)
Add a message to the context |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LoggerContext
public LoggerContext()
setMessage
public void setMessage(LoggerMessage newMessage)
- Add a message to the context
displayString
public java.lang.String displayString()
- Displays a string to be displayed on the screen for this
context.
logString
public java.lang.String logString()
- Displays a string to be saved in a log for this
context.