Packagesystem.logging
Classpublic class Logger
InheritanceLogger Inheritance Signal Inheritance InternalSignal Inheritance Object

API for sending log output.



Public Properties
 PropertyDefined By
  channel : String
[read-only] Indicates the channel value for the logger.
Logger
 Inheritedlength : uint
[read-only] Indicates the number of receivers connected.
InternalSignal
 Inheritedtypes : *
Determinates the optional Array representation of all valid types of this signal.
InternalSignal
Protected Properties
 PropertyDefined By
 Inheritedreceivers : Vector.<SignalEntry>
The Array representation of all receivers.
InternalSignal
Public Methods
 MethodDefined By
  
Logger(channel:String)
Creates a new Logger instance.
Logger
 Inherited
checkValues(values:Array):void
Checks all values passed-in the emit method.
InternalSignal
 Inherited
connect(receiver:*, priority:uint = 0, autoDisconnect:Boolean = false):Boolean
Connects a Function or a Receiver object.
InternalSignal
 Inherited
connected():Boolean
Returns true if one or more receivers are connected.
InternalSignal
  
debug(context:*, ... rest):void
Logs the specified data using the LogEventLevel.DEBUG level.
Logger
 Inherited
disconnect(receiver:* = null):Boolean
Disconnect the specified object or all objects if the parameter is null.
InternalSignal
 Inherited
emit(... values):void
[override] Emit the specified values to the receivers.
Signal
  
error(context:*, ... rest):void
Logs the specified data using the LogEventLevel.ERROR level.
Logger
  
fatal(context:*, ... rest):void
Logs the specified data using the LogEventLevel.FATAL level.
Logger
 Inherited
hasReceiver(receiver:*):Boolean
Returns true if the specified receiver is connected.
InternalSignal
  
info(context:*, ... rest):void
Logs the specified data using the LogEvent.INFO level.
Logger
  
log(context:*, ... rest):void
Logs the specified data using the LogEvent.ALL level.
Logger
 Inherited
toArray():Array
Returns the Array representation of all receivers connected with the signal.
InternalSignal
 Inherited
toVector():Vector.<Function>
Returns the Vector representation of all receivers connected with the signal.
InternalSignal
  
warn(context:*, ... rest):void
Logs the specified data using the LogEventLevel.WARN level.
Logger
  
wtf(context:*, ... rest):void
What a Terrible Failure: Report an exception that should never happen.
Logger
Property Detail
channelproperty
channel:String  [read-only]

Indicates the channel value for the logger.


Implementation
    public function get channel():String
Constructor Detail
Logger()Constructor
public function Logger(channel:String)

Creates a new Logger instance.

Parameters
channel:String — The channel value of the logger.
Method Detail
debug()method
public function debug(context:*, ... rest):void

Logs the specified data using the LogEventLevel.DEBUG level.

Parameters

context:* — The information to log. This string can contain special marker characters of the form {x}, where x is a zero based index that will be replaced with the additional parameters found at that index if specified.
 
... rest — Additional parameters that can be subsituted in the str parameter at each "{x}" location, where x is an integer (zero based) index value into the Array of values specified.

error()method 
public function error(context:*, ... rest):void

Logs the specified data using the LogEventLevel.ERROR level.

Parameters

context:* — The information to log. This string can contain special marker characters of the form {x}, where x is a zero based index that will be replaced with the additional parameters found at that index if specified.
 
... rest — Additional parameters that can be subsituted in the str parameter at each "{x}" location, where x is an integer (zero based) index value into the Array of values specified.

fatal()method 
public function fatal(context:*, ... rest):void

Logs the specified data using the LogEventLevel.FATAL level.

Parameters

context:* — The information to log. This string can contain special marker characters of the form {x}, where x is a zero based index that will be replaced with the additional parameters found at that index if specified.
 
... rest — Additional parameters that can be subsituted in the str parameter at each "{x}" location, where x is an integer (zero based) index value into the Array of values specified.

info()method 
public function info(context:*, ... rest):void

Logs the specified data using the LogEvent.INFO level.

Parameters

context:* — The information to log. This string can contain special marker characters of the form {x}, where x is a zero based index that will be replaced with the additional parameters found at that index if specified.
 
... rest — Additional parameters that can be subsituted in the str parameter at each "{x}" location, where x is an integer (zero based) index value into the Array of values specified.

log()method 
public function log(context:*, ... rest):void

Logs the specified data using the LogEvent.ALL level.

Parameters

context:* — The information to log. This string can contain special marker characters of the form {x}, where x is a zero based index that will be replaced with the additional parameters found at that index if specified.
 
... rest — Additional parameters that can be subsituted in the str parameter at each "{x}" location, where x is an integer (zero based) index value into the Array of values specified.

warn()method 
public function warn(context:*, ... rest):void

Logs the specified data using the LogEventLevel.WARN level.

Parameters

context:* — The information to log. This string can contain special marker characters of the form {x}, where x is a zero based index that will be replaced with the additional parameters found at that index if specified.
 
... rest — Additional parameters that can be subsituted in the str parameter at each "{x}" location, where x is an integer (zero based) index value into the Array of values specified.

wtf()method 
public function wtf(context:*, ... rest):void

What a Terrible Failure: Report an exception that should never happen.

Parameters

context:* — The information to log. This string can contain special marker characters of the form {x}, where x is a zero based index that will be replaced with the additional parameters found at that index if specified.
 
... rest — Additional parameters that can be subsituted in the str parameter at each "{x}" location, where x is an integer (zero based) index value into the Array of values specified.