| Methods |
protected
|
_echoStderr(string $message): void
Outputs message to STDERR.
Outputs message to STDERR.
|
#
|
public
|
log(mixed $level, string|Stringable $message, array<mixed> $context = []): void
Logs with an arbitrary level.
Logs with an arbitrary level.
|
#
|
public
|
debug(bool|string|Stringable $message, array<mixed> $context = []): void
Detailed debug information.
Detailed debug information.
|
#
|
public
|
debugTraceChange(string $trace = 'default'): void
Method designed to intercept one of the hardest-to-debug situations within Agile Toolkit.
Method designed to intercept one of the hardest-to-debug situations within Agile Toolkit.
Suppose you define a hook and the hook needs to be called only once, but somehow it is
being called multiple times. You want to know where and how those calls come through.
Place debugTraceChange inside your hook and give unique $trace identifier. If the method
is invoked through different call paths, this debug info will be logged.
Do not use this method in production code !!!
|
#
|
public
|
emergency(string|Stringable $message, array<mixed> $context = []): void
System is unusable.
|
#
|
public
|
alert(string|Stringable $message, array<mixed> $context = []): void
Action must be taken immediately.
Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should
trigger the SMS alerts and wake you up.
|
#
|
public
|
critical(string|Stringable $message, array<mixed> $context = []): void
Critical conditions.
Critical conditions.
Example: Application component unavailable, unexpected exception.
|
#
|
public
|
error(string|Stringable $message, array<mixed> $context = []): void
Runtime errors that do not require immediate action but should typically
be logged and monitored.
Runtime errors that do not require immediate action but should typically
be logged and monitored.
|
#
|
public
|
warning(string|Stringable $message, array<mixed> $context = []): void
Exceptional occurrences that are not errors.
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things
that are not necessarily wrong.
|
#
|
public
|
notice(string|Stringable $message, array<mixed> $context = []): void
Normal but significant events.
Normal but significant events.
|
#
|
public
|
info(string|Stringable $message, array<mixed> $context = []): void
Interesting events.
Interesting events.
Example: User logs in, SQL logs.
|
#
|