Adobe Flex 2 Language Reference - collected by Jimbob | Back to MY RESOURCES


Packagemx.logging.targets
Classpublic class LineFormattedTarget
InheritanceLineFormattedTarget Inheritance AbstractTarget Inheritance Object
SubclassesMiniDebugTarget, 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
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
addLogger(logger:ILogger):void
Sets up this target with the specified logger.
AbstractTarget
 Inherited
initialized(document:Object, id:String):void
Called after the implementing object has been created and all properties specified on the tag have been assigned.
AbstractTarget
  
logEvent(event:LogEvent):void
This method handles a LogEvent from an associated logger.
LineFormattedTarget
 Inherited
removeLogger(logger:ILogger):void
Stops this target from receiving events from the specified logger.
AbstractTarget
 Inherited
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations.
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 and pass that line to the internalLog() method.

Method detail
logEvent()method
public override 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 will be called only if the event's level is in range of the target's level.

Parameters
event:LogEvent





collected by Jimbob 2007.05