套件 | 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, 03:47 PM Z