class Logger

deprecated since version 4.9.0, to be removed with version 5.0.0. Please use the \ACP3\Core\Logger\LoggerFactory instead

Class for logging warnings, errors, etc.

Properties

protected ApplicationPath $appPath

Methods

__construct(ApplicationPath $appPath)

Logger constructor.

debug(string $channel, mixed $message, array $context = [])

Debug log

info(string $channel, mixed $message, array $context = [])

Info log

notice(string $channel, mixed $message, array $context = [])

Notice log

warning(string $channel, mixed $message, array $context = [])

Warning log

error(string $channel, mixed $message, array $context = [])

Error log

critical(string $channel, mixed $message, array $context = [])

Critical log

alert(string $channel, mixed $message, array $context = [])

Alert log

emergency(string $channel, mixed $message, array $context = [])

Emergency log

Details

at line 33
__construct(ApplicationPath $appPath)

Logger constructor.

Parameters

ApplicationPath $appPath

at line 95
debug(string $channel, mixed $message, array $context = [])

Debug log

Parameters

string $channel
mixed $message
array $context

at line 107
info(string $channel, mixed $message, array $context = [])

Info log

Parameters

string $channel
mixed $message
array $context

at line 119
notice(string $channel, mixed $message, array $context = [])

Notice log

Parameters

string $channel
mixed $message
array $context

at line 131
warning(string $channel, mixed $message, array $context = [])

Warning log

Parameters

string $channel
mixed $message
array $context

at line 143
error(string $channel, mixed $message, array $context = [])

Error log

Parameters

string $channel
mixed $message
array $context

at line 155
critical(string $channel, mixed $message, array $context = [])

Critical log

Parameters

string $channel
mixed $message
array $context

at line 167
alert(string $channel, mixed $message, array $context = [])

Alert log

Parameters

string $channel
mixed $message
array $context

at line 179
emergency(string $channel, mixed $message, array $context = [])

Emergency log

Parameters

string $channel
mixed $message
array $context