flex.messaging.log
Class Log

java.lang.Object
  extended by flex.messaging.log.Log

public class Log
extends Object


Method Summary
static void addTarget(Target target)
          Adds a target to the log.
static Log createLog()
          Creates the log on first access, returns already created log on subsequent calls.
static Logger getLogger(String category)
          Given a category, returns the logger associated with the category.
static List getTargets()
          Returns an unmodifiable snapshot of the targets registered with this Log when the method is invoked.
static void initialize(String id, ConfigMap properties)
          Initializes Log with id and properties.
static boolean isDebug()
          Indicates whether a debug level log event will be processed by a log target.
static boolean isError()
          Indicates whether an error level log event will be processed by a log target.
static boolean isFatal()
          Indicates whether a fatal level log event will be processed by a log target.
static boolean isInfo()
          Indicates whether an info level log event will be processed by a log target.
static boolean isWarn()
          Indicates whether a warn level log event will be processed by a log target.
static void removeTarget(Target target)
          Removes a target from the log.
static void reset()
          This method removes all of the current loggers and targets from the cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLog

public static Log createLog()
Creates the log on first access, returns already created log on subsequent calls.

Returns:
log.

initialize

public static void initialize(String id,
                              ConfigMap properties)
Initializes Log with id and properties.

Parameters:
id - Id for the Log which is ignored.
properties - ConfigMap of properties for the Log.

isFatal

public static boolean isFatal()
Indicates whether a fatal level log event will be processed by a log target.


isError

public static boolean isError()
Indicates whether an error level log event will be processed by a log target.


isWarn

public static boolean isWarn()
Indicates whether a warn level log event will be processed by a log target.


isInfo

public static boolean isInfo()
Indicates whether an info level log event will be processed by a log target.


isDebug

public static boolean isDebug()
Indicates whether a debug level log event will be processed by a log target.


getLogger

public static Logger getLogger(String category)
Given a category, returns the logger associated with the category.

Parameters:
category - Categogry for the logger.
Returns:
Logger associated with the category.

getTargets

public static List getTargets()
Returns an unmodifiable snapshot of the targets registered with this Log when the method is invoked.


addTarget

public static void addTarget(Target target)
Adds a target to the log.

Parameters:
target - Target to be added.

removeTarget

public static void removeTarget(Target target)
Removes a target from the log.

Parameters:
target - The target to be removed.

reset

public static void reset()
This method removes all of the current loggers and targets from the cache. and resets target level.



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