net.sourceforge.acelogger
Class LogEvent

java.lang.Object
  extended by net.sourceforge.acelogger.LogEvent
All Implemented Interfaces:
Serializable

public class LogEvent
extends Object
implements Serializable

Used to store log event data.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)
See Also:
Serialized Form

Constructor Summary
LogEvent(String message, LogLevel level)
          Constructs a new log event using the supplied information.
LogEvent(String message, LogLevel level, LogEventLocation location, Object... messageParameters)
          Constructs a new log event using the supplied information.
LogEvent(String message, LogLevel level, LogEventLocation location, Throwable cause, Object... messageParameters)
          Constructs a new log event using the supplied information.
LogEvent(String message, LogLevel level, Object... messageParameters)
          Constructs a new log event using the supplied information.
 
Method Summary
 Date getCallTime()
          Gets the call time for this log event.
 Throwable getCause()
          Gets the cause for this log event.
 long getIdentifier()
          Gets the identifier for this log event.
 LogLevel getLevel()
          Gets the level for this log event.
 LogEventLocation getLocation()
          Gets the call location for this log event.
 String getMessage()
          Gets the message for this log event.
 Object[] getMessageParameters()
          Gets the message parameters for this log event.
static Date getStartTime()
          Gets the start time for the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEvent

public LogEvent(String message,
                LogLevel level)
Constructs a new log event using the supplied information.

Parameters:
message - The description for this event.
level - The severity level for this event.
Since:
1.0.0

LogEvent

public LogEvent(String message,
                LogLevel level,
                Object... messageParameters)
Constructs a new log event using the supplied information.

Parameters:
message - The description for this event.
level - The severity level for this event.
messageParameters - The parameters to be interpolated into the message.
Since:
1.0.0

LogEvent

public LogEvent(String message,
                LogLevel level,
                LogEventLocation location,
                Object... messageParameters)
Constructs a new log event using the supplied information.

Parameters:
message - The description for this event.
level - The severity level for this event.
location - The location that originated this event.
messageParameters - The parameters to be interpolated into the message.
Since:
1.0.0

LogEvent

public LogEvent(String message,
                LogLevel level,
                LogEventLocation location,
                Throwable cause,
                Object... messageParameters)
Constructs a new log event using the supplied information.

Parameters:
message - The description for this event.
level - The severity level for this event.
location - The location that originated this event.
cause - The problem that originated this event.
messageParameters - The parameters to be interpolated into the message.
Since:
1.0.0
Method Detail

getLevel

public final LogLevel getLevel()
Gets the level for this log event.

Returns:
The log event's level.
Since:
1.0.0

getIdentifier

public final long getIdentifier()
Gets the identifier for this log event.

Returns:
The log event's identifier.
Since:
1.0.0

getCallTime

public final Date getCallTime()
Gets the call time for this log event.

Returns:
The log event's call time.
Since:
1.0.0

getMessage

public final String getMessage()
Gets the message for this log event.

Returns:
The log event's message.
Since:
1.0.0

getMessageParameters

public final Object[] getMessageParameters()
Gets the message parameters for this log event.

Returns:
The log event's message parameters.
Since:
1.0.0

getLocation

public final LogEventLocation getLocation()
Gets the call location for this log event.

Returns:
The log event's call location.
Since:
1.0.0

getCause

public final Throwable getCause()
Gets the cause for this log event.

Returns:
The log event's cause.
Since:
1.0.0

getStartTime

public static final Date getStartTime()
Gets the start time for the application.

Returns:
The log system's start time.
Since:
1.0.0


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.