Packageorg.spicefactory.lib.logging
Interfacepublic interface Logger

The Logger interface of the Spicelib Log Wrapper API. Depending on the type of Application implementations will delegate to the Flex Logging API or to the Spicelib Flash Logging Framework.



Public Properties
 PropertyDefined By
  name : String
[read-only] The name of the logger.
Logger
Public Methods
 MethodDefined By
  
debug(message:String, ... rest):void
Logs a message with the DEBUG log level.
Logger
  
error(message:String, ... rest):void
Logs a message with the ERROR log level.
Logger
  
fatal(message:String, ... rest):void
Logs a message with the FATAL log level.
Logger
  
info(message:String, ... rest):void
Logs a message with the INFO log level.
Logger
  
isDebugEnabled():Boolean
Checks whether the log level DEBUG is active for this Logger.
Logger
  
isErrorEnabled():Boolean
Checks whether the log level ERROR is active for this Logger.
Logger
  
isFatalEnabled():Boolean
Checks whether the log level FATAL is active for this Logger.
Logger
  
isInfoEnabled():Boolean
Checks whether the log level INFO is active for this Logger.
Logger
  
isTraceEnabled():Boolean
Checks whether the log level TRACE is active for this Logger.
Logger
  
isWarnEnabled():Boolean
Checks whether the log level WARN is active for this Logger.
Logger
  
trace(message:String, ... rest):void
Logs a message with the TRACE log level.
Logger
  
warn(message:String, ... rest):void
Logs a message with the WARN log level.
Logger
Property Detail
nameproperty
name:String  [read-only]

The name of the logger.


Implementation
    public function get name():String
Method Detail
debug()method
public function debug(message:String, ... rest):void

Logs a message with the DEBUG log level.

Parameters

message:String — the log message
 
... rest — an optional Error instance associated with the log message.

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

Logs a message with the ERROR log level.

Parameters

message:String — the log message
 
... rest — an optional Error instance associated with the log message.

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

Logs a message with the FATAL log level.

Parameters

message:String — the log message
 
... rest — an optional Error instance associated with the log message.

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

Logs a message with the INFO log level.

Parameters

message:String — the log message
 
... rest — an optional Error instance associated with the log message.

isDebugEnabled()method 
public function isDebugEnabled():Boolean

Checks whether the log level DEBUG is active for this Logger.

Returns
Boolean — true if the log level DEBUG is active for this Logger
isErrorEnabled()method 
public function isErrorEnabled():Boolean

Checks whether the log level ERROR is active for this Logger.

Returns
Boolean — true if the log level ERROR is active for this Logger
isFatalEnabled()method 
public function isFatalEnabled():Boolean

Checks whether the log level FATAL is active for this Logger.

Returns
Boolean — true if the log level FATAL is active for this Logger
isInfoEnabled()method 
public function isInfoEnabled():Boolean

Checks whether the log level INFO is active for this Logger.

Returns
Boolean — true if the log level INFO is active for this Logger
isTraceEnabled()method 
public function isTraceEnabled():Boolean

Checks whether the log level TRACE is active for this Logger.

Returns
Boolean — true if the log level TRACE is active for this Logger
isWarnEnabled()method 
public function isWarnEnabled():Boolean

Checks whether the log level WARN is active for this Logger.

Returns
Boolean — true if the log level WARN is active for this Logger
trace()method 
public function trace(message:String, ... rest):void

Logs a message with the TRACE log level.

Parameters

message:String — the log message
 
... rest — an optional Error instance associated with the log message.

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

Logs a message with the WARN log level.

Parameters

message:String — the log message
 
... rest — an optional Error instance associated with the log message.