| Package | system.logging |
| Class | public class Logger |
| Inheritance | Logger Signal InternalSignal Object |
| Property | Defined By | ||
|---|---|---|---|
| channel : String [read-only]
Indicates the channel value for the logger. | Logger | ||
![]() | length : uint [read-only]
Indicates the number of receivers connected. | InternalSignal | |
![]() | types : *
Determinates the optional Array representation of all valid types of this signal. | InternalSignal | |
| Method | Defined By | ||
|---|---|---|---|
Logger(channel:String)
Creates a new Logger instance. | Logger | ||
![]() | checkValues(values:Array):void
Checks all values passed-in the emit method. | InternalSignal | |
![]() | connect(receiver:*, priority:uint = 0, autoDisconnect:Boolean = false):Boolean
Connects a Function or a Receiver object. | InternalSignal | |
![]() | 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 | ||
![]() | disconnect(receiver:* = null):Boolean
Disconnect the specified object or all objects if the parameter is null. | InternalSignal | |
![]() | 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 | ||
![]() | 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 | ||
![]() | toArray():Array
Returns the Array representation of all receivers connected with the signal. | InternalSignal | |
![]() | 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 | ||
| channel | property |
channel:String [read-only] Indicates the channel value for the logger.
public function get channel():String| Logger | () | Constructor |
public function Logger(channel:String)Creates a new Logger instance.
Parameterschannel:String — The channel value of the logger.
|
| debug | () | method |
public function debug(context:*, ... rest):voidLogs 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):voidLogs 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):voidLogs 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):voidLogs 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):voidLogs 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):voidLogs 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):voidWhat 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.
|