flex.messaging.log
Class AbstractTarget

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

public abstract class AbstractTarget
extends Object
implements Target


Constructor Summary
AbstractTarget()
          Default constructor.
 
Method Summary
 void addFilter(String value)
          Adds a filter to this target.
 void addLogger(Logger logger)
          Sets up this target with the specified logger.
 List getFilters()
          Return a read-only snap-shot of the current filters for this target.
 short getLevel()
          Return the log level for this target.
 void initialize(String id, ConfigMap properties)
          Initializes the target with id and properties.
 void removeFilter(String value)
          Removes a filter from this target.
 void removeLogger(Logger logger)
          Stops this target from receiving events from the specified logger.
 void setFilters(List value)
          Sets the list of filters for this target.
 void setLevel(short value)
          Sets the log level for this target.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface flex.messaging.log.Target
logEvent
 

Constructor Detail

AbstractTarget

public AbstractTarget()
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
Parameters:
id - id for the target which is ignored.
properties - ConfigMap of properties for the target.

getFilters

public List getFilters()
Return a read-only snap-shot of the current filters for this target.

Specified by:
getFilters in interface Target
Returns:
An unmodifiable list of filters.

addFilter

public void addFilter(String value)
Adds a filter to this target.

Specified by:
addFilter in interface Target
Parameters:
value - Filter to be added.

removeFilter

public void removeFilter(String value)
Removes a filter from this target.

Specified by:
removeFilter in interface Target
Parameters:
value - Filter to be removed.

setFilters

public void setFilters(List value)
Sets the list of filters for this target.

Specified by:
setFilters in interface Target
Parameters:
value - List of filters.

getLevel

public short getLevel()
Return the log level for this target.

Specified by:
getLevel in interface Target
Returns:
The log level that the Target will process log events for.

setLevel

public void setLevel(short value)
Sets the log level for this target. If not set, defaults to LogEvent.ERROR.

Specified by:
setLevel in interface Target
Parameters:
value - The log level that the Target will process log events for.

addLogger

public void addLogger(Logger logger)
Sets up this target with the specified logger. This allows this target to receive log events from the specified logger.

Specified by:
addLogger in interface Target
Parameters:
logger - this target should listen to.

removeLogger

public void removeLogger(Logger logger)
Stops this target from receiving events from the specified logger.

Specified by:
removeLogger in interface Target
Parameters:
logger - this target should ignore.


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/AbstractTarget.html