[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/vendor/psr/log/Psr/Log/ -> AbstractLogger.php (summary)

This is a simple Logger implementation that other Loggers can inherit from. It simply delegates all log-level-specific methods to the `log` method to reduce boilerplate code that a simple Logger that does the same thing with messages regardless of the error level has to implement.

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

Defines 8 functions

  emergency()
  alert()
  critical()
  error()
  warning()
  notice()
  info()
  debug()

Functions
Functions that are not part of a class:

emergency($message, array $context = array()   X-Ref
System is unusable.

return: void
param: string  $message
param: mixed[] $context

alert($message, array $context = array()   X-Ref
Action must be taken immediately.

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

return: void
param: string  $message
param: mixed[] $context

critical($message, array $context = array()   X-Ref
Critical conditions.

Example: Application component unavailable, unexpected exception.

return: void
param: string  $message
param: mixed[] $context

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

return: void
param: string  $message
param: mixed[] $context

warning($message, array $context = array()   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.

return: void
param: string  $message
param: mixed[] $context

notice($message, array $context = array()   X-Ref
Normal but significant events.

return: void
param: string  $message
param: mixed[] $context

info($message, array $context = array()   X-Ref
Interesting events.

Example: User logs in, SQL logs.

return: void
param: string  $message
param: mixed[] $context

debug($message, array $context = array()   X-Ref
Detailed debug information.

return: void
param: string  $message
param: mixed[] $context



Generated: Sat Nov 9 05:10:01 2024 Cross-referenced by PHPXref 0.7.1