Packagevegas.logging
Classpublic class LogLogger
InheritanceLogLogger Inheritance flash.events.EventDispatcher
ImplementsILogger

The logger that is used within the logging framework. This class dispatches events for each message logged using the log() method.



Public Properties
 PropertyDefined by
  category : String
[read-only] Returns the category of this logger.
LogLogger
Public Methods
 MethodDefined by
  
LogLogger(category:String)
Creates a new LogLogger instance.
LogLogger
  
debug(context:*, ... rest):void
Logs the specified data using the LogEventLevel.DEBUG level.
LogLogger
  
error(context:*, ... rest):void
Logs the specified data using the LogEventLevel.ERROR level.
LogLogger
  
fatal(context:*, ... rest):void
Logs the specified data using the LogEventLevel.FATAL level.
LogLogger
  
info(context:*, ... rest):void
Logs the specified data using the LogEvent.INFO level.
LogLogger
  
log(level:LogEventLevel, ... context, rest:*):void
Logs the specified data at the given level.
LogLogger
  
warn(context:*, ... rest):void
Logs the specified data using the LogEventLevel.WARN level.
LogLogger
Property detail
categoryproperty
category:String  [read-only]

Returns the category of this logger.

Implementation
    public function get category():String
Constructor detail
LogLogger()constructor
public function LogLogger(category:String)

Creates a new LogLogger instance.

Parameters
category:String
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(level:LogEventLevel, ... context, rest:*):void

Logs the specified data at the given level.

Parameters
level:LogEventLevel — The level this information should be logged at. Valid values are:

  • LogEventLevel.FATAL designates events that are very harmful and will eventually lead to application failure
  • LogEventLevel.ERROR designates error events that might still allow the application to continue running.
  • LogEventLevel.WARN designates events that could be harmful to the application operation
  • LogEventLevel.INFO designates informational messages that highlight the progress of the application at coarse-grained level.
  • LogEventLevel.DEBUG designates informational level messages that are fine grained and most helpful when debugging an application.
  • LogEventLevel.ALL intended to force a target to process all messages.
  •  
    ... 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.