ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.gravity.utility.logging 

Logger  - AS3 ADEP Client Component

Packagecom.adobe.gravity.utility.logging
Classpublic class Logger
InheritanceLogger Inheritance Object

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

The standard logging class. To use, declare an instance as a static private const member of your class:
     public class MyClass
     {
       static private const _logger:Logger = Logger.getLoggerByClass(MyClass);
     
       public function MyClass(myNumber:int)
       {
         _logger.finest("Constructor called with {myNumber}.", {myNumber: myNumber}, this);
       }
     }
     



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  name : String
[read-only] The name of the Logger instance.
Logger
Public Methods
 MethodDefined By
  
config(message:String, params:Object = null, actor:Object = null, error:Error = null):void
Log a CONFIG message.
Logger
  
fine(message:String, params:Object = null, actor:Object = null, error:Error = null):void
Log a FINE message.
Logger
  
finer(message:String, params:Object = null, actor:Object = null, error:Error = null):void
Log a FINER message.
Logger
  
finest(message:String, params:Object = null, actor:Object = null, error:Error = null):void
Log a FINEST message.
Logger
  
getLoggerByClass(clss:Class, name:String = null, logger:ILogger = null):Logger
[static] Get a Logger.
Logger
 Inherited
Indicates whether an object has a specified property defined.
Object
  
info(message:String, params:Object = null, actor:Object = null, error:Error = null):void
Log an INFO message.
Logger
  
Determine whether a message will be logged.
Logger
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
log(level:int, message:String, params:Object = null, actor:Object = null, error:Error = null):void
Log a message at the specified level.
Logger
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
  
severe(message:String, params:Object = null, actor:Object = null, error:Error = null):void
Log a SEVERE message.
Logger
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
  
warning(message:String, params:Object = null, actor:Object = null, error:Error = null):void
Log a WARNING message.
Logger
Property Detail

name

property
name:String  [read-only]

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

The name of the Logger instance.



Implementation
    public function get name():String
Method Detail

config

()method
public function config(message:String, params:Object = null, actor:Object = null, error:Error = null):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Log a CONFIG message.

Parameters

message:String — The message to be logged.
 
params:Object (default = null) — Any parameters for the message.
 
actor:Object (default = null) — The object instance relating to the message (typically specified as this).
 
error:Error (default = null) — An error associated with the message.

fine

()method 
public function fine(message:String, params:Object = null, actor:Object = null, error:Error = null):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Log a FINE message.

Parameters

message:String — The message to be logged.
 
params:Object (default = null) — Any parameters for the message.
 
actor:Object (default = null) — The object instance relating to the message (typically specified as this).
 
error:Error (default = null) — An error associated with the message.

finer

()method 
public function finer(message:String, params:Object = null, actor:Object = null, error:Error = null):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Log a FINER message.

Parameters

message:String — The message to be logged.
 
params:Object (default = null) — Any parameters for the message.
 
actor:Object (default = null) — The object instance relating to the message (typically specified as this).
 
error:Error (default = null) — An error associated with the message.

finest

()method 
public function finest(message:String, params:Object = null, actor:Object = null, error:Error = null):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Log a FINEST message.

Parameters

message:String — The message to be logged.
 
params:Object (default = null) — Any parameters for the message.
 
actor:Object (default = null) — The object instance relating to the message (typically specified as this).
 
error:Error (default = null) — An error associated with the message.

getLoggerByClass

()method 
public static function getLoggerByClass(clss:Class, name:String = null, logger:ILogger = null):Logger

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Get a Logger.

Parameters

clss:Class — The class for which this logger will log messages.
 
name:String (default = null) — An optional name for the logger, typically only used when a single class needs to have multiple loggers.
 
logger:ILogger (default = null) — The actual ILogger object to use for logging; only specified in special circumstances.

Returns
Logger

info

()method 
public function info(message:String, params:Object = null, actor:Object = null, error:Error = null):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Log an INFO message.

Parameters

message:String — The message to be logged.
 
params:Object (default = null) — Any parameters for the message.
 
actor:Object (default = null) — The object instance relating to the message (typically specified as this).
 
error:Error (default = null) — An error associated with the message.

isLoggable

()method 
public function isLoggable(level:int):Boolean

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Determine whether a message will be logged.

Parameters

level:int — The logging level of the message.

Returns
Boolean — true if the message will be logged, false otherwise.

log

()method 
public function log(level:int, message:String, params:Object = null, actor:Object = null, error:Error = null):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Log a message at the specified level.

Parameters

level:int — The level for the message.
 
message:String — The message to be logged.
 
params:Object (default = null) — Any parameters for the message.
 
actor:Object (default = null) — The object instance relating to the message (typically specified as this).
 
error:Error (default = null) — An error associated with the message.

severe

()method 
public function severe(message:String, params:Object = null, actor:Object = null, error:Error = null):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Log a SEVERE message.

Parameters

message:String — The message to be logged.
 
params:Object (default = null) — Any parameters for the message.
 
actor:Object (default = null) — The object instance relating to the message (typically specified as this).
 
error:Error (default = null) — An error associated with the message.

warning

()method 
public function warning(message:String, params:Object = null, actor:Object = null, error:Error = null):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Log a WARNING message.

Parameters

message:String — The message to be logged.
 
params:Object (default = null) — Any parameters for the message.
 
actor:Object (default = null) — The object instance relating to the message (typically specified as this).
 
error:Error (default = null) — An error associated with the message.