\OCPILogger

Interface ILogger

Summary

Methods
Constants
emergency()
alert()
critical()
error()
warning()
notice()
info()
debug()
log()
logException()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

emergency()

emergency(string  $message, array  $context = array()) : null

System is unusable.

Parameters

string $message
array $context

Returns

null

alert()

alert(string  $message, array  $context = array()) : null

Action must be taken immediately.

Parameters

string $message
array $context

Returns

null

critical()

critical(string  $message, array  $context = array()) : null

Critical conditions.

Parameters

string $message
array $context

Returns

null

error()

error(string  $message, array  $context = array()) : null

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters

string $message
array $context

Returns

null

warning()

warning(string  $message, array  $context = array()) : null

Exceptional occurrences that are not errors.

Parameters

string $message
array $context

Returns

null

notice()

notice(string  $message, array  $context = array()) : null

Normal but significant events.

Parameters

string $message
array $context

Returns

null

info()

info(string  $message, array  $context = array()) : null

Interesting events.

Parameters

string $message
array $context

Returns

null

debug()

debug(string  $message, array  $context = array()) : null

Detailed debug information.

Parameters

string $message
array $context

Returns

null

log()

log(mixed  $level, string  $message, array  $context = array()) : mixed

Logs with an arbitrary level.

Parameters

mixed $level
string $message
array $context

Returns

mixed

logException()

logException(  $exception, array  $context = array()) : void

Logs an exception very detailed An additional message can we written to the log by adding it to the context.

$logger->logException($ex, [ 'message' => 'Exception during cron job execution' ]);

Parameters

$exception
array $context