org.oddjob.logging
Class LogEvent
java.lang.Object
org.oddjob.logging.LogEvent
- All Implemented Interfaces:
- Serializable
public class LogEvent
- extends Object
- implements Serializable
A LogEvent is archived in a LogArchiver. These LogEvents are Serialised so
they may be sent across the network.
The log message should already be formatted.
The sequence number allows a local LogArchive to synchronise with
a remote LogArchive.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogEvent
public LogEvent(String logger,
long number,
LogLevel level,
String message)
- Construct a new LogEvent.
- Parameters:
logger
- The logger (or archive). Must not be null.number
- The sequence number for this event.level
- The LogLevel. Must not be null.message
- The formatted message. Must not be null.
getLevel
public LogLevel getLevel()
- Returns:
- Returns the level.
getLogger
public String getLogger()
- Returns:
- Returns the logger.
getMessage
public String getMessage()
- Returns:
- Returns the message.
getNumber
public long getNumber()
- Returns:
- Returns the number.