Dispatched when the log's level is changed via Logger.setLevel method. To access the new level, use getLevel(), which returns one of the following values: Logger.FATAL, Logger.ERROR, Logger.WARN, Logger.INFO, or Logger.DEBUG.
Dispatched when a new message is added to the log. To add a message to the log, use one of the following Logger class methods: debug(), info(), warn(), error(), or fatal().
If this event is LogEvent.UPDATE, returns the severity level for the log entry; if this event is LogEvent.LEVEL_CHANGE, returns the log's new severity level.
One of Logger.FATAL, Logger.ERROR, Logger.WARN, Logger.INFO, or Logger.DEBUG.
Returns the text of the log message. Available for the LogEvent.UPDATE event only.
Returns a human-readable string indicating the time of the log entry.
LogEvent is a simple data class used to pass information from an application's Logger to registered event-listeners when a log event occurs. A log event is triggered when a message is added to the log via debug(), info(), warn(), error, or fatal(). The LogEvent class also defines a constant representing the log events: LogEvent.UPDATE and LogEvent.LEVEL_CHANGE.
To register for a log event, use the Logger.addEventListener method.