| Package | com.aispeech.log |
| Class | public class AILog |
| Inheritance | AILog Object |
Wrapper of mx.logging.Log. By default, AILogger has AthropodTarget bulit-in. Also by default, AthropdTarget accept all levels of log, and category of "com.aispeech..
See also
| Property | Defined By | ||
|---|---|---|---|
| logLevel : int [static] [write-only] | AILog | ||
| Method | Defined By | ||
|---|---|---|---|
addTarget(target:ILoggingTarget):void [static] | AILog | ||
getLogger(category:String):ILogger [static]
By default, add AthropodTarget, log level ALL, filter ["]
| AILog | ||
removeTarget(target:ILoggingTarget):void [static] | AILog | ||
| logLevel | property |
logLevel:int [write-only] public static function set logLevel(value:int):void| addTarget | () | method |
public static function addTarget(target:ILoggingTarget):voidParameters
target:ILoggingTarget |
| getLogger | () | method |
public static function getLogger(category:String):ILoggerBy default, add AthropodTarget, log level ALL, filter ["]
Parameters
category:String |
ILogger —
|
| removeTarget | () | method |
public static function removeTarget(target:ILoggingTarget):voidParameters
target:ILoggingTarget |
import import mx.logging.ILogger;
import com.aispeech.log.AILog;
// get logger instance
private var _logger:ILogger = AILog.getLogger("AILogTest");
_logger.debug("debug");
// add another target, all targets are singltons.
AILogger.addTarget(FirebugTarget.getInstance());
// now the log info output to both targets
_logger.debug("both debug");