HermesHSILogger
in package
implements
LoggerInterface
Interfaces, Classes and Traits
- LoggerInterface
Table of Contents
- LOG_FILE = 'hermeshsi'
- $logger : LoggerInterface
- __construct() : mixed
- alert() : null
- Action must be taken immediately.
- critical() : null
- Critical conditions.
- debug() : null
- Detailed debug information.
- emergency() : null
- System is unusable.
- error() : null
- Runtime errors that do not require immediate action but should typically be logged and monitored.
- info() : null
- Interesting events.
- log() : null
- Logs with an arbitrary level.
- notice() : null
- Normal but significant events.
- warning() : null
- Exceptional occurrences that are not errors.
- replaceContext() : string
- Performs PSR-3 compliant context replacement.
Constants
LOG_FILE
public
mixed
LOG_FILE
= 'hermeshsi'
Properties
$logger
protected
LoggerInterface
$logger
Methods
__construct()
public
__construct() : mixed
Return values
mixed —alert()
Action must be taken immediately.
public
alert(string $message[, array<string|int, mixed> $context = [] ]) : null
Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —critical()
Critical conditions.
public
critical(string $message[, array<string|int, mixed> $context = [] ]) : null
Example: Application component unavailable, unexpected exception.
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —debug()
Detailed debug information.
public
debug(string $message[, array<string|int, mixed> $context = [] ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —emergency()
System is unusable.
public
emergency(string $message[, array<string|int, mixed> $context = [] ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —error()
Runtime errors that do not require immediate action but should typically be logged and monitored.
public
error(string $message[, array<string|int, mixed> $context = [] ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —info()
Interesting events.
public
info(string $message[, array<string|int, mixed> $context = [] ]) : null
Example: User logs in, SQL logs.
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —log()
Logs with an arbitrary level.
public
log(mixed $level, string $message[, array<string|int, mixed> $context = [] ]) : null
Parameters
- $level : mixed
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —notice()
Normal but significant events.
public
notice(string $message[, array<string|int, mixed> $context = [] ]) : null
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —warning()
Exceptional occurrences that are not errors.
public
warning(string $message[, array<string|int, mixed> $context = [] ]) : null
Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
Parameters
- $message : string
- $context : array<string|int, mixed> = []
Return values
null —replaceContext()
Performs PSR-3 compliant context replacement.
protected
replaceContext(string $message, array<string|int, mixed> $context) : string
Parameters
- $message : string
- $context : array<string|int, mixed>