\CloudMunch\loghandlingLogHandler

Display message based on log level set in app context LogLevel Message Types displayed INFO All - except for DEBUG DEBUG All WARNING WARNING, ERROR and AUDIT ERROR ERROR and AUDIT

Summary

Methods
Properties
Constants
__construct()
isDebugEnabled()
isInfoEnabled()
isWarningEnabled()
log()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$appContext
$logLevel
N/A

Properties

$appContext

$appContext : \CloudMunch\loghandling\CloudMunch\AppContext

Type

\CloudMunch\loghandling\CloudMunch\AppContext — Reference to AppContext object.

$logLevel

$logLevel : string

Type

string — log level

Methods

__construct()

__construct(\CloudMunch\loghandling\CloudMunch\AppContext  $appContext) 

Constructor to initialise application context.

Parameters

\CloudMunch\loghandling\CloudMunch\AppContext $appContext

isDebugEnabled()

isDebugEnabled() : boolean

Returns true if log level is debug

Returns

boolean

isInfoEnabled()

isInfoEnabled() : boolean

Returns true if log level is info

Returns

boolean

isWarningEnabled()

isWarningEnabled() : boolean

The method returns true if loglevel is either info, debug or warning

Returns

boolean

log()

log(string  $msgNo, string  $msg) 

This method logs messages according to log level.

Parameters

string $msgNo

log level DEBUG,INFO,ERROR, WARNING,AUDIT

string $msg

message in the log