| Package | de.flamelab.log |
| Class | public class Log |
| Inheritance | Log flash.events.EventDispatcher |
| Method | Defined by | ||
|---|---|---|---|
|
Log()
Empty constructor
| Log | ||
|
addWriter(writer:AbstractLogWriter):void
Add writer to log instance
| Log | ||
|
log(msg:Object, prio:int):void
Log a message.
| Log | ||
|
removeWriter(writer:AbstractLogWriter):void
Remove writer from log
| Log | ||
| Constant | Defined by | ||
|---|---|---|---|
| ALERT : int = 1 [static]
| Log | ||
| CRIT : int = 2 [static]
| Log | ||
| DEBUG : int = 7 [static]
| Log | ||
| EMERG : int = 0 [static]
Priority of log actions
| Log | ||
| ERR : int = 3 [static]
| Log | ||
| INFO : int = 6 [static]
| Log | ||
| LOGCODES : Array [static]
Reverse mapping of codes to string
| Log | ||
| NOTICE : int = 5 [static]
| Log | ||
| WARN : int = 4 [static]
| Log | ||
| Log | () | constructor |
public function Log()Empty constructor
| addWriter | () | method |
public function addWriter(writer:AbstractLogWriter):voidAdd writer to log instance
Parameterswriter:AbstractLogWriter — Instance of writer which implements concrete logging action
|
| log | () | method |
public function log(msg:Object, prio:int):voidLog a message. This method is the main loggin method which shoulf be called.
Parametersmsg:Object — An object containing the log info, e.g. a string with an message,
or an array with more concrete log data.
|
|
prio:int — An integer indicating the log priority
|
| removeWriter | () | method |
public function removeWriter(writer:AbstractLogWriter):voidRemove writer from log
Parameterswriter:AbstractLogWriter — Instance of writer which implements concrete logging action
|
| ALERT | constant |
public static const ALERT:int = 1
| CRIT | constant |
public static const CRIT:int = 2
| DEBUG | constant |
public static const DEBUG:int = 7
| EMERG | constant |
public static const EMERG:int = 0Priority of log actions
| ERR | constant |
public static const ERR:int = 3
| INFO | constant |
public static const INFO:int = 6
| LOGCODES | constant |
public static const LOGCODES:ArrayReverse mapping of codes to string
| NOTICE | constant |
public static const NOTICE:int = 5
| WARN | constant |
public static const WARN:int = 4