Packageorg.spicefactory.lib.logging
Classpublic class LogEvent
InheritanceLogEvent Inheritance flash.events.Event

Event that fires when a log method is invoked in a Logger instance.



Public Properties
 PropertyDefined by
  error : Error
[read-only] An optional Error instance associated with this LogEvent.
LogEvent
  level : LogLevel
[read-only] The level for this event.
LogEvent
  message : String
[read-only] The message for this event.
LogEvent
Public Methods
 MethodDefined by
  
LogEvent(level:LogLevel, message:String, error:Error = null)
Creates a new instance.
LogEvent
Public Constants
 ConstantDefined by
  LOG : String = "log"
[static] Constant for the type of event fired when a log method is invoked in a Logger instance.
LogEvent
Property detail
errorproperty
error:Error  [read-only]

An optional Error instance associated with this LogEvent.

Implementation
    public function get error():Error
levelproperty 
level:LogLevel  [read-only]

The level for this event.

Implementation
    public function get level():LogLevel
messageproperty 
message:String  [read-only]

The message for this event.

Implementation
    public function get message():String
Constructor detail
LogEvent()constructor
public function LogEvent(level:LogLevel, message:String, error:Error = null)

Creates a new instance.

Parameters
level:LogLevel — the level that is associated with this event
 
message:String — the log message for this event
 
error:Error (default = null) — an optional Error instance associated with this event
Constant detail
LOGconstant
public static const LOG:String = "log"

Constant for the type of event fired when a log method is invoked in a Logger instance.