Detailed Description

Interface for logger implementations.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 18 of file Logger.php.

+ Inheritance diagram for Logger:

Public Member Functions

 debug ($message)
 
 info ($message)
 
 warn ($message)
 
 error ($message)
 
 fatal ($message)
 
 isDebugEnabled ()
 
 isInfoEnabled ()
 
 isWarnEnabled ()
 
 isErrorEnabled ()
 
 isFatalEnabled ()
 
 logByErrorType ($type, $message)
 

Static Public Member Functions

static getLogger ($name)
 

Member Function Documentation

◆ debug()

debug (   $message)

Print a debug message.

Parameters
$messageThe message

Implemented in MonologFileLogger, and Log4phpLogger.

◆ info()

info (   $message)

Print a info message.

Parameters
$messageThe message

Implemented in MonologFileLogger, and Log4phpLogger.

◆ warn()

warn (   $message)

Print a warn message.

Parameters
$messageThe message

Implemented in MonologFileLogger, and Log4phpLogger.

◆ error()

error (   $message)

Print a error message.

Parameters
$messageThe message

Implemented in MonologFileLogger, and Log4phpLogger.

◆ fatal()

fatal (   $message)

Print a fatal message.

Parameters
$messageThe message

Implemented in MonologFileLogger, and Log4phpLogger.

◆ isDebugEnabled()

isDebugEnabled ( )

Check if debug level is enabled.

Returns
Boolean

Implemented in MonologFileLogger, and Log4phpLogger.

◆ isInfoEnabled()

isInfoEnabled ( )

Check if info level is enabled.

Returns
Boolean

Implemented in MonologFileLogger, and Log4phpLogger.

◆ isWarnEnabled()

isWarnEnabled ( )

Check if warn level is enabled.

Returns
Boolean

Implemented in MonologFileLogger, and Log4phpLogger.

◆ isErrorEnabled()

isErrorEnabled ( )

Check if error level is enabled.

Returns
Boolean

Implemented in MonologFileLogger, and Log4phpLogger.

◆ isFatalEnabled()

isFatalEnabled ( )

Check if fatal level is enabled.

Returns
Boolean

Implemented in MonologFileLogger, and Log4phpLogger.

◆ logByErrorType()

logByErrorType (   $type,
  $message 
)

Log the given message and choose the level from the given type.

Parameters
$typePHP error constant (e.g. E_WARNING)
$message

Implemented in AbstractLogger.

◆ getLogger()

static getLogger (   $name)
static

Get a Logger instance by name.

Parameters
$nameThe name
Returns
Logger

Implemented in MonologFileLogger, and Log4phpLogger.