Package org.codelibs.fess.helper
Class LogNotificationHelper.LogNotificationEvent
java.lang.Object
org.codelibs.fess.helper.LogNotificationHelper.LogNotificationEvent
- Enclosing class:
LogNotificationHelper
Represents a captured log event for notification.
-
Constructor Summary
ConstructorsConstructorDescriptionLogNotificationEvent(long timestamp, String level, String loggerName, String message, String throwable) Constructs a new LogNotificationEvent. -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()Returns the log level name.Returns the logger name.Returns the log message.Returns the throwable string.longReturns the event timestamp in milliseconds.
-
Constructor Details
-
LogNotificationEvent
public LogNotificationEvent(long timestamp, String level, String loggerName, String message, String throwable) Constructs a new LogNotificationEvent.- Parameters:
timestamp- the event timestamp in millisecondslevel- the log level nameloggerName- the logger namemessage- the log messagethrowable- the throwable string, or null
-
-
Method Details
-
getTimestamp
public long getTimestamp()Returns the event timestamp in milliseconds.- Returns:
- the event timestamp in milliseconds
-
getLevel
Returns the log level name.- Returns:
- the log level name
-
getLoggerName
Returns the logger name.- Returns:
- the logger name
-
getMessage
Returns the log message.- Returns:
- the log message
-
getThrowable
Returns the throwable string.- Returns:
- the throwable string, or null
-