Packagemx.logging.targets
Classpublic class LineFormattedTarget
InheritanceLineFormattedTarget Inheritance AbstractTarget Inheritance Object
Subclasses MiniDebugTarget, TraceTarget

All logger target implementations that have a formatted line style output should extend this class. It provides default behavior for including date, time, category, and level within the output.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  fieldSeparator : String = " "
The separator string to use between fields (the default is " ")
LineFormattedTarget
 Inheritedfilters : Array
In addition to the level setting, filters are used to provide a psuedo-hierarchical mapping for processing only those events for a given category.
AbstractTarget
 Inheritedid : String
[read-only] Provides access to the id of this target.
AbstractTarget
  includeCategory : Boolean
Indicates if the category for this target should added to the trace.
LineFormattedTarget
  includeDate : Boolean
Indicates if the date should be added to the trace.
LineFormattedTarget
  includeLevel : Boolean
Indicates if the level for the event should added to the trace.
LineFormattedTarget
  includeTime : Boolean
Indicates if the time should be added to the trace.
LineFormattedTarget
 Inheritedlevel : int
Provides access to the level this target is currently set at.
AbstractTarget
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
  
Constructor.
LineFormattedTarget
 Inherited
Sets up this target with the specified logger.
AbstractTarget
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Called after the implementing object has been created and all properties specified on the tag have been assigned.
AbstractTarget
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
[override] This method handles a LogEvent from an associated logger.
LineFormattedTarget
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Stops this target from receiving events from the specified logger.
AbstractTarget
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
fieldSeparatorproperty
public var fieldSeparator:String = " "

The separator string to use between fields (the default is " ")

includeCategoryproperty 
public var includeCategory:Boolean

Indicates if the category for this target should added to the trace.

includeDateproperty 
public var includeDate:Boolean

Indicates if the date should be added to the trace.

includeLevelproperty 
public var includeLevel:Boolean

Indicates if the level for the event should added to the trace.

includeTimeproperty 
public var includeTime:Boolean

Indicates if the time should be added to the trace.

Constructor Detail
LineFormattedTarget()Constructor
public function LineFormattedTarget()

Constructor.

Constructs an instance of a logger target that will format the message data on a single line.

Method Detail
logEvent()method
override public function logEvent(event:LogEvent):void

This method handles a LogEvent from an associated logger. A target uses this method to translate the event into the appropriate format for transmission, storage, or display. This method is called only if the event's level is in range of the target's level.

Parameters

event:LogEvent — The LogEvent handled by this method.