Packagech.capi.utils.logging
Classpublic class TextFieldHandler
InheritanceTextFieldHandler Inheritance Object
Implements ILogHandler



Public Properties
 PropertyDefined By
  field : TextField
[read-only] Defines the TextField where the log is appened.
TextFieldHandler
Public Methods
 MethodDefined By
  
TextFieldHandler(field:TextField)
Creates a new TextFieldHandler object.
TextFieldHandler
  
create(container:DisplayObjectContainer = null, logger:Logger = null):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
Property Detail
fieldproperty
field:TextField  [read-only]

Defines the TextField where the log is appened.


Implementation
    public function get field():TextField
Constructor Detail
TextFieldHandler()Constructor
public function TextFieldHandler(field:TextField)

Creates a new TextFieldHandler object.

Parameters
field:TextField — The TextField to use.
Method Detail
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.

Returns
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.