包 | com.adobe.gravity.utility.logging |
类 | public class Logger |
继承 | Logger Object |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
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); } }
公共属性
属性 | 由以下参数定义 | ||
---|---|---|---|
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
name : String [只读]
The name of the Logger instance. | Logger |
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
Log a CONFIG message. | Logger | ||
Log a FINE message. | Logger | ||
Log a FINER message. | Logger | ||
Log a FINEST message. | Logger | ||
[静态]
Get a Logger. | Logger | ||
表示对象是否已经定义了指定的属性。 | Object | ||
Log an INFO message. | Logger | ||
Determine whether a message will be logged. | Logger | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
Log a message at the specified level. | Logger | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
设置循环操作动态属性的可用性。 | Object | ||
Log a SEVERE message. | Logger | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
Log a WARNING message. | Logger |
属性详细信息
name | 属性 |
方法详细信息
config | () | 方法 |
public function config(message:String, params:Object = null, actor:Object = null, error:Error = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Log a CONFIG 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.
|
fine | () | 方法 |
public function fine(message:String, params:Object = null, actor:Object = null, error:Error = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Log a FINE 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.
|
finer | () | 方法 |
public function finer(message:String, params:Object = null, actor:Object = null, error:Error = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Log a FINER 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.
|
finest | () | 方法 |
public function finest(message:String, params:Object = null, actor:Object = null, error:Error = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Log a FINEST 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.
|
getLoggerByClass | () | 方法 |
public static function getLoggerByClass(clss:Class, name:String = null, logger:ILogger = null):Logger
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Get a Logger.
参数
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.
|
Logger |
info | () | 方法 |
public function info(message:String, params:Object = null, actor:Object = null, error:Error = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Log an INFO 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.
|
isLoggable | () | 方法 |
public function isLoggable(level:int):Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Determine whether a message will be logged.
参数
level:int — The logging level of the message.
|
Boolean — true if the message will be logged, false otherwise.
|
log | () | 方法 |
public function log(level:int, message:String, params:Object = null, actor:Object = null, error:Error = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Log a message at the specified level.
参数
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 | () | 方法 |
public function severe(message:String, params:Object = null, actor:Object = null, error:Error = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Log a SEVERE 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.
|
warning | () | 方法 |
public function warning(message:String, params:Object = null, actor:Object = null, error:Error = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
运行时版本: | AIR 1.1, Flash Player 9 |
Log a WARNING 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.
|
Tue Jun 12 2018, 11:04 AM Z