[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/vendor/psr/log/src/ -> LoggerInterface.php (summary)

(no description)

File Size: 98 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LoggerInterface:: (9 methods):
  emergency()
  alert()
  critical()
  error()
  warning()
  notice()
  info()
  debug()
  log()


Interface: LoggerInterface  - X-Ref

Describes a logger instance.

The message MUST be a string or object implementing __toString().

The message MAY contain placeholders in the form: {foo} where foo
will be replaced by the context data in key "foo".

The context array can contain arbitrary data. The only assumption that
can be made by implementors is that if an Exception instance is given
to produce a stack trace, it MUST be in a key named "exception".

See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
for the full interface specification.
emergency(string|\Stringable $message, array $context = [])   X-Ref
System is unusable.

param: mixed[] $context

alert(string|\Stringable $message, array $context = [])   X-Ref
Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should
trigger the SMS alerts and wake you up.

param: mixed[] $context

critical(string|\Stringable $message, array $context = [])   X-Ref
Critical conditions.

Example: Application component unavailable, unexpected exception.

param: mixed[] $context

error(string|\Stringable $message, array $context = [])   X-Ref
Runtime errors that do not require immediate action but should typically
be logged and monitored.

param: mixed[] $context

warning(string|\Stringable $message, array $context = [])   X-Ref
Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things
that are not necessarily wrong.

param: mixed[] $context

notice(string|\Stringable $message, array $context = [])   X-Ref
Normal but significant events.

param: mixed[] $context

info(string|\Stringable $message, array $context = [])   X-Ref
Interesting events.

Example: User logs in, SQL logs.

param: mixed[] $context

debug(string|\Stringable $message, array $context = [])   X-Ref
Detailed debug information.

param: mixed[] $context

log($level, string|\Stringable $message, array $context = [])   X-Ref
Logs with an arbitrary level.

param: mixed $level
param: mixed[] $context



Generated: Mon Mar 31 05:10:02 2025 Cross-referenced by PHPXref 0.7.1