Package | sekati.log |
Class | public final class Logger |
Inheritance | Logger flash.events.EventDispatcher |
Implements | ILogger |
Property | Defined by | ||
---|---|---|---|
$ : Logger
[static][read-only]
Shorthand singleton accessor getter
| Logger | ||
enabled : Boolean
Logger enabled status.
| Logger | ||
_instance : Logger
[static]
| Logger | ||
outputMode : uint
Handles which output mode(s) the
Logger should act upon. | Logger | ||
settings : String [read-only]
Returns level and filter settings.
| Logger |
Method | Defined by | ||
---|---|---|---|
Logger($:SingletonEnforcer = null)
Logger Singleton Constructor
| Logger | ||
debug(origin:Object, message:String):void
debug is a log level denoting an informational event which may require investigation. | Logger | ||
destroy():void
Destroy the Logger Singleton instance.
| Logger | ||
error(origin:Object, message:String):void
error is a log level denoting a error type event. | Logger | ||
fatal(origin:Object, message:String):void
fatal is a log level denoting a fatal type event. | Logger | ||
getFilters():String
Returns a stringified overview of all filters statuses.
| Logger | ||
[static]
Singleton Accessor
| Logger | ||
getLevels():String
Returns a stringified overview of all levels statuses.
| Logger | ||
info(origin:Object, message:String):void
info is a log level denoting an informational event. | Logger | ||
isFiltered(origin:Object):Boolean
Check if an origin's output is being filtered
| Logger | ||
notice(origin:Object, message:String):void
notice is a log level denoting an event of interest. | Logger | ||
object(origin:Object):void
object is a special log level which delivers origin object recursion. | Logger | ||
reset():void
Reset our default levels and filters.
| Logger | ||
resetFilters():void
Reset all filters (clearing previous filters)
| Logger | ||
resetLevels():void
Reset all levels
| Logger | ||
setAllLevels(isEnabled:Boolean):void
Enable or disable all existing levels.
| Logger | ||
setFilter(origin:Object, isFiltered:Boolean):void
Enable/disable a filter and create the filter if it does not already exist.
| Logger | ||
setLevel(level:String, isEnabled:Boolean):void
Enable/disable a log level.
| Logger | ||
status(origin:Object, message:String):void
status is a log level denoting a status message. | Logger | ||
trace(origin:Object, message:String):void
trace is a log level denoting a standard log event. | Logger | ||
warn(origin:Object, message:String):void
warn is a log level denoting an event of concern. | Logger |
$ | property |
$:Logger
[read-only]Shorthand singleton accessor getter
Implementation public static function get $():Logger
enabled | property |
enabled:Boolean
[read-write]Logger enabled status.
Implementation public function get enabled():Boolean
public function set enabled(value:Boolean):void
_instance | property |
public static var _instance:Logger
outputMode | property |
outputMode:uint
[read-write]
Handles which output mode(s) the Logger
should act upon.
public function get outputMode():uint
public function set outputMode(value:uint):void
See also
settings | property |
settings:String
[read-only]Returns level and filter settings.
Implementation public function get settings():String
Logger | () | constructor |
public function Logger($:SingletonEnforcer = null)
Logger Singleton Constructor
Parameters$:SingletonEnforcer (default = null ) — SingletonEnforcer - internal to the AS file; the param prevents external instantiation without error.
|
debug | () | method |
public function debug(origin:Object, message:String):void
debug
is a log level denoting an informational event which may require investigation.
origin:Object |
|
message:String |
destroy | () | method |
public function destroy():void
Destroy the Logger Singleton instance.
error | () | method |
public function error(origin:Object, message:String):void
error
is a log level denoting a error type event.
origin:Object |
|
message:String |
fatal | () | method |
public function fatal(origin:Object, message:String):void
fatal
is a log level denoting a fatal type event.
origin:Object |
|
message:String |
getFilters | () | method |
public function getFilters():String
Returns a stringified overview of all filters statuses.
ReturnsString |
getInstance | () | method |
getLevels | () | method |
public function getLevels():String
Returns a stringified overview of all levels statuses.
ReturnsString |
info | () | method |
public function info(origin:Object, message:String):void
info
is a log level denoting an informational event.
origin:Object |
|
message:String |
isFiltered | () | method |
public function isFiltered(origin:Object):Boolean
Check if an origin's output is being filtered
Parametersorigin:Object — to check.
|
Boolean |
notice | () | method |
public function notice(origin:Object, message:String):void
notice
is a log level denoting an event of interest.
origin:Object |
|
message:String |
object | () | method |
public function object(origin:Object):void
object
is a special log level which delivers origin object recursion.
origin:Object |
See also
reset | () | method |
public function reset():void
Reset our default levels and filters.
resetFilters | () | method |
public function resetFilters():void
Reset all filters (clearing previous filters)
resetLevels | () | method |
public function resetLevels():void
Reset all levels
setAllLevels | () | method |
public function setAllLevels(isEnabled:Boolean):void
Enable or disable all existing levels.
ParametersisEnabled:Boolean — enabled status
|
setFilter | () | method |
public function setFilter(origin:Object, isFiltered:Boolean):void
Enable/disable a filter and create the filter if it does not already exist.
Parametersorigin:Object — object to filter on [usually a string]
|
|
isFiltered:Boolean |
setLevel | () | method |
public function setLevel(level:String, isEnabled:Boolean):void
Enable/disable a log level.
Parameterslevel:String — level name
|
|
isEnabled:Boolean — enabled status
|
status | () | method |
public function status(origin:Object, message:String):void
status
is a log level denoting a status message.
origin:Object |
|
message:String |
trace | () | method |
public function trace(origin:Object, message:String):void
trace
is a log level denoting a standard log event.
origin:Object |
|
message:String |
warn | () | method |
public function warn(origin:Object, message:String):void
warn
is a log level denoting an event of concern.
origin:Object |
|
message:String |