flex.messaging.log
Interface Target


public interface Target

All logger target implementations within the logging framework must implement this interface. Target implementations receive log events and output information from these events to the appropriate output destination which may be a console, log file or some other custom destination.


Method Summary
 void addLogger(Logger logger)
          Adds a Logger whose category matches the filters list for the Target.
 List getFilters()
          Returns the category filters defined for the Target.
 short getLevel()
          Returns the log level that the Target will process log events for.
 void logEvent(flex.messaging.log.LogEvent event)
          Logs a log event out to the Targets output destination, which may be the console or a log file.
 void removeLogger(Logger logger)
          Removes a Logger from the Target.
 void setFilters(List value)
          Sets the category filters that the Target will process log events for.
 void setLevel(short value)
          Sets the log level that the Target will process log events for.
 

Method Detail

getFilters

public List getFilters()
Returns the category filters defined for the Target.

Returns:
The category filters defined for the Target.

setFilters

public void setFilters(List value)
Sets the category filters that the Target will process log events for.

Parameters:
value - The category filters that the Target will process log events for.

getLevel

public short getLevel()
Returns the log level that the Target will process log events for. Log events at this level, or at a higher priority level will be processed.

Returns:
The log level that the Target will process log events for.

setLevel

public void setLevel(short value)
Sets the log level that the Target will process log events for. Log events at this level, or at a higher priority level will be processed.

Parameters:
value - The log level that the Target will process log events for.

addLogger

public void addLogger(Logger logger)
Adds a Logger whose category matches the filters list for the Target. The Logger will dispatch log events to this Target to be output.

Parameters:
logger - The Logger to add.

removeLogger

public void removeLogger(Logger logger)
Removes a Logger from the Target.

Parameters:
logger - The Logger to remove.

logEvent

public void logEvent(flex.messaging.log.LogEvent event)
Logs a log event out to the Targets output destination, which may be the console or a log file.

Parameters:
event - The LogEvent containing the information to output.


Copyright © 2006 Adobe Systems Inc. All Rights Reserved. (Updated August 2, 2006)

Take a survey