Packageorg.swizframework.utils.logging
Classpublic class SwizLogger
InheritanceSwizLogger Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  category : String
[read-only] The category this logger send messages for.
SwizLogger
Protected Properties
 PropertyDefined By
  _category : String
SwizLogger
  loggers : Dictionary
[static]
SwizLogger
  loggingTargets : Array
[static]
SwizLogger
Public Methods
 MethodDefined By
  
SwizLogger(className:String)
SwizLogger
  
[static]
SwizLogger
  
categoryMatchInFilterList(category:String, filters:Array):Boolean
[static] This method checks that the specified category matches any of the filter expressions provided in the filters Array.
SwizLogger
  
debug(msg:String, ... rest):void
SwizLogger
  
error(msg:String, ... rest):void
SwizLogger
  
fatal(msg:String, ... rest):void
SwizLogger
  
getLogger(target:Object):SwizLogger
[static]
SwizLogger
  
info(msg:String, ... rest):void
SwizLogger
  
log(level:int, msg:String, ... rest):void
SwizLogger
  
warn(msg:String, ... rest):void
SwizLogger
Protected Methods
 MethodDefined By
  
constructMessage(msg:String, params:Array):String
SwizLogger
Property Detail
_categoryproperty
protected var _category:String

categoryproperty 
category:String  [read-only]

The category this logger send messages for.


Implementation
    public function get category():String
loggersproperty 
protected static var loggers:Dictionary

loggingTargetsproperty 
protected static var loggingTargets:Array

Constructor Detail
SwizLogger()Constructor
public function SwizLogger(className:String)



Parameters
className:String
Method Detail
addLoggingTarget()method
public static function addLoggingTarget(loggingTarget:AbstractSwizLoggingTarget):void

Parameters

loggingTarget:AbstractSwizLoggingTarget

categoryMatchInFilterList()method 
public static function categoryMatchInFilterList(category:String, filters:Array):Boolean

This method checks that the specified category matches any of the filter expressions provided in the filters Array.

Parameters

category:String — The category to match against
 
filters:Array — A list of Strings to check category against.

Returns
Booleantrue if the specified category matches any of the filter expressions found in the filters list, false otherwise.
constructMessage()method 
protected function constructMessage(msg:String, params:Array):String

Parameters

msg:String
 
params:Array

Returns
String
debug()method 
public function debug(msg:String, ... rest):void

Parameters

msg:String
 
... rest

error()method 
public function error(msg:String, ... rest):void

Parameters

msg:String
 
... rest

fatal()method 
public function fatal(msg:String, ... rest):void

Parameters

msg:String
 
... rest

getLogger()method 
public static function getLogger(target:Object):SwizLogger

Parameters

target:Object

Returns
SwizLogger
info()method 
public function info(msg:String, ... rest):void

Parameters

msg:String
 
... rest

log()method 
public function log(level:int, msg:String, ... rest):void

Parameters

level:int
 
msg:String
 
... rest

warn()method 
public function warn(msg:String, ... rest):void

Parameters

msg:String
 
... rest