flex.messaging.log
Class LineFormattedTarget

java.lang.Object
  extended by flex.messaging.log.AbstractTarget
      extended by flex.messaging.log.LineFormattedTarget
All Implemented Interfaces:
Target
Direct Known Subclasses:
ConsoleTarget, ServletLogTarget

public class LineFormattedTarget
extends AbstractTarget


Constructor Summary
LineFormattedTarget()
          Default constructor
 
Method Summary
 String getPrefix()
          Returns prefix property.
 void initialize(String id, ConfigMap properties)
          Initializes the target with id and properties.
 boolean isIncludeCategory()
          Returns includeCategory property.
 boolean isIncludeDate()
          Returns includeDate property.
 boolean isIncludeLevel()
          Returns includeLevel property.
 boolean isIncludeTime()
          Returns includeTime property.
 void logEvent(LogEvent event)
          This method handles a LogEvent from an associated logger.
 void setIncludeCategory(boolean includeCategory)
          Sets includeCategory property.
 void setIncludeDate(boolean includeDate)
          Sets includeDate property.
 void setIncludeLevel(boolean includeLevel)
          Sets includeLevel property.
 void setIncludeTime(boolean includeTime)
          Sets includeTime property.
 void setPrefix(String prefix)
          Sets prefix property.
 
Methods inherited from class flex.messaging.log.AbstractTarget
addFilter, addLogger, getFilters, getLevel, removeFilter, removeLogger, setFilters, setLevel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineFormattedTarget

public LineFormattedTarget()
Default constructor

Method Detail

initialize

public void initialize(String id,
                       ConfigMap properties)
Initializes the target with id and properties. Subclasses can overwrite.

Specified by:
initialize in interface Target
Overrides:
initialize in class AbstractTarget
Parameters:
id - id for the target which is ignored.
properties - ConfigMap of properties for the target.

isIncludeCategory

public boolean isIncludeCategory()
Returns includeCategory property.

Returns:
true if category is included; false otherwise.

setIncludeCategory

public void setIncludeCategory(boolean includeCategory)
Sets includeCategory property.

Parameters:
includeCategory -

isIncludeDate

public boolean isIncludeDate()
Returns includeDate property.

Returns:
true if date is included; false otherwise.

setIncludeDate

public void setIncludeDate(boolean includeDate)
Sets includeDate property.

Parameters:
includeDate -

isIncludeLevel

public boolean isIncludeLevel()
Returns includeLevel property.

Returns:
true if level is included; false otherwise.

setIncludeLevel

public void setIncludeLevel(boolean includeLevel)
Sets includeLevel property.

Parameters:
includeLevel -

isIncludeTime

public boolean isIncludeTime()
Returns includeTime property.

Returns:
true if time is included; false otherwise.

setIncludeTime

public void setIncludeTime(boolean includeTime)
Sets includeTime property.

Parameters:
includeTime -

getPrefix

public String getPrefix()
Returns prefix property.

Returns:
The prefix for log messages.

setPrefix

public void setPrefix(String prefix)
Sets prefix property.

Parameters:
prefix -

logEvent

public void logEvent(LogEvent event)
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 - The LogEvent containing the information to output.


Copyright © 2007 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/log/LineFormattedTarget.html