Concrete Log formatter implementation.
Formates the log event by a given string expression containig markers.
The following markers will work:
- %timestamp% - will be replaced with the events timestamp
- %code% - will be replaced with the events priority code
- %timestamp% - will be replaced with the events message
On creation you can pass in a fiven format string.
public function LogFormatterSimple(format:String = null)
constructor, creates the fomatter object
Parameters
| format:String (default = null) — String with formatting rule
|
public function format(event:LogEvent):String
Format log event by defined formating rule
Parameters
| event:LogEvent — Log event containig all log related information
|
Returns
| String — String Formatted event data
|
copyright 2009 by flamelab.de