Packageorg.as3commons.logging
Classpublic class LoggerProxy
ImplementsILogger

Proxy for an ILogger implementation. This class is used internally by the LoggerFactory and should not be used directly.

A LoggerProxy is created for each logger requested from the factory. This allows us to replace the ILogger implementations in the global logger factory when its internal factory changes.



Public Properties
 PropertyDefined by
  debugEnabled : Boolean
[read-only] Is debug logging currently enabled?
LoggerProxy
  errorEnabled : Boolean
[read-only] Is error logging currently enabled?
LoggerProxy
  fatalEnabled : Boolean
[read-only] Is fatal logging currently enabled?
LoggerProxy
  infoEnabled : Boolean
[read-only] Is info logging currently enabled?
LoggerProxy
  logger : ILogger
[write-only] Sets the proxied logger.
LoggerProxy
  warnEnabled : Boolean
[read-only] Is warn logging currently enabled?
LoggerProxy
Public Methods
 MethodDefined by
  
LoggerProxy(name:String, logger:ILogger = null)
Creates a new LoggerProxy.
LoggerProxy
  
debug(message:String, ... params):void
Returns the name of this logger.
LoggerProxy
  
error(message:String, ... params):void
Logs a message with a "error" level.
LoggerProxy
  
fatal(message:String, ... params):void
Logs a message with a "fatal" level.
LoggerProxy
  
info(message:String, ... params):void
Logs a message with a "info" level.
LoggerProxy
  
warn(message:String, ... params):void
Logs a message with a "warn" level.
LoggerProxy
Property detail
debugEnabledproperty
debugEnabled:Boolean  [read-only]

Is debug logging currently enabled?

Implementation
    public function get debugEnabled():Boolean
errorEnabledproperty 
errorEnabled:Boolean  [read-only]

Is error logging currently enabled?

Implementation
    public function get errorEnabled():Boolean
fatalEnabledproperty 
fatalEnabled:Boolean  [read-only]

Is fatal logging currently enabled?

Implementation
    public function get fatalEnabled():Boolean
infoEnabledproperty 
infoEnabled:Boolean  [read-only]

Is info logging currently enabled?

Implementation
    public function get infoEnabled():Boolean
loggerproperty 
logger:ILogger  [write-only]

Sets the proxied logger.

Implementation
    public function set logger(value:ILogger):void
warnEnabledproperty 
warnEnabled:Boolean  [read-only]

Is warn logging currently enabled?

Implementation
    public function get warnEnabled():Boolean
Constructor detail
LoggerProxy()constructor
public function LoggerProxy(name:String, logger:ILogger = null)

Creates a new LoggerProxy.

Parameters
name:String
 
logger:ILogger (default = null)
Method detail
debug()method
public function debug(message:String, ... params):void

Returns the name of this logger.

Parameters
message:String
 
... params
error()method 
public function error(message:String, ... params):void

Logs a message with a "error" level.

Parameters
message:String
 
... params
fatal()method 
public function fatal(message:String, ... params):void

Logs a message with a "fatal" level.

Parameters
message:String
 
... params
info()method 
public function info(message:String, ... params):void

Logs a message with a "info" level.

Parameters
message:String
 
... params
warn()method 
public function warn(message:String, ... params):void

Logs a message with a "warn" level.

Parameters
message:String
 
... params