Packagecom.adobe.mediacore.logging
Classpublic class LogFactory
InheritanceLogFactory Inheritance Object

Default logging factory.



Public Properties
 PropertyDefined By
  filter : String
Optional filter to apply to all loggers.
LogFactory
Public Methods
 MethodDefined By
  
getLogger(category:String):Logger
Returns a logger associated with the specified category.
LogFactory
Protected Methods
 MethodDefined By
  
doProvideLogger(category:String):Logger
Actual factory method for creating loggers for a specific category.
LogFactory
Property Detail
filterproperty
filter:String

Optional filter to apply to all loggers. If specified, then only those loggers whose category doesn't match or is not contained within this filter string (which is case-sensitive) will be created. Otherwise a NullLogger will be returned.


Implementation
    public function get filter():String
    public function set filter(value:String):void
Method Detail
doProvideLogger()method
protected function doProvideLogger(category:String):Logger

Actual factory method for creating loggers for a specific category. The default implementation will return a DefaultLogger for all categories. Subclasses should override this method in order to provide their own custom loggers.

Parameters

category:String — category for which we want to created a logger.

Returns
Logger — a logger instance.
getLogger()method 
public final function getLogger(category:String):Logger

Returns a logger associated with the specified category. If no previous logger was associated with the specified category, then a new logger will be created. If the specified category is found inside the filter property, then a NullLogger will be returned.

Parameters

category:String — category for which we want to obtain a logger. A good practice is to use full class name as a category value. In this way, instances of the same class will reuse the same logger.

Returns
Logger