Packagecom.aispeech.log
Classpublic class AILog
InheritanceAILog Inheritance Object

AILogger

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..

View the examples

See also

com.aispeech.log.AthropdTarget
com.carlcalderon.arthropod.Debug


Public Properties
 PropertyDefined By
  logLevel : int
[static] [write-only]
AILog
Public Methods
 MethodDefined 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
Property Detail
logLevelproperty
logLevel:int  [write-only]


Implementation
    public static function set logLevel(value:int):void
Method Detail
addTarget()method
public static function addTarget(target:ILoggingTarget):void

Parameters

target:ILoggingTarget

getLogger()method 
public static function getLogger(category:String):ILogger

By default, add AthropodTarget, log level ALL, filter ["]

Parameters

category:String

Returns
ILogger
removeTarget()method 
public static function removeTarget(target:ILoggingTarget):void

Parameters

target:ILoggingTarget

Examples
     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");