Package | ch.capi.utils.logging |
Class | public class TextFieldHandler |
Inheritance | TextFieldHandler Object |
Implements | ILogHandler |
Property | Defined By | ||
---|---|---|---|
field : TextField [read-only]
Defines the TextField where the log is appened. | TextFieldHandler |
Method | Defined By | ||
---|---|---|---|
TextFieldHandler(field:TextField)
Creates a new TextFieldHandler object. | TextFieldHandler | ||
[static]
Creates a simple TextField and use it to create a new
TextFieldHandler instance. | TextFieldHandler | ||
log(level:int, text:String, methodPath:String = null):void
Process the log information. | TextFieldHandler |
field | property |
field:TextField
[read-only]
Defines the TextField
where the log is appened.
public function get field():TextField
TextFieldHandler | () | Constructor |
public function TextFieldHandler(field:TextField)
Creates a new TextFieldHandler
object.
field:TextField — The TextField to use.
|
create | () | method |
public static function create(container:DisplayObjectContainer = null, logger:Logger = null):TextFieldHandler
Creates a simple TextField
and use it to create a new
TextFieldHandler
instance. If a Sprite
is
specified, the TextField
will be added as child. If a
Logger
is specified, the handler will automatically be
added to it.
Parameters
container:DisplayObjectContainer (default = null ) — A container for the created TextField .
| |
logger:Logger (default = null ) — A Logger to add the TextFieldHandler .
|
TextFieldHandler — The created TextFieldHandler .
|
log | () | method |
public function log(level:int, text:String, methodPath:String = null):void
Process the log information.
Parameters
level:int — The logging level.
| |
text:String — The text to log.
| |
methodPath:String (default = null ) — The method complete name.
|