PHP Class Imdb\Logger

Inheritance: implements Psr\Log\LoggerInterface
Afficher le fichier Open project: tboothman/imdbphp

Protected Properties

Свойство Type Description
$enabled

Méthodes publiques

Méthode Description
__construct ( $enabled = true )
alert ( string $message, array $context = [] ) : null Action must be taken immediately.
critical ( string $message, array $context = [] ) Critical conditions.
debug ( string $message, array $context = [] ) Detailed debug information.
emergency ( string $message, array $context = [] ) : null System is unusable.
error ( string $message, array $context = [] ) Runtime errors that do not require immediate action but should typically be logged and monitored.
info ( string $message, array $context = [] ) : null Interesting events.
log ( mixed $level, string $message, array $context = [] ) Logs with an arbitrary level.
notice ( string $message, array $context = [] ) Normal but significant events.
warning ( string $message, array $context = [] ) Exceptional occurrences that are not errors.

Method Details

__construct() public méthode

public __construct ( $enabled = true )

alert() public méthode

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
public alert ( string $message, array $context = [] ) : null
$message string
$context array
Résultat null

critical() public méthode

Example: Application component unavailable, unexpected exception.
public critical ( string $message, array $context = [] )
$message string
$context array

debug() public méthode

Detailed debug information.
public debug ( string $message, array $context = [] )
$message string
$context array

emergency() public méthode

System is unusable.
public emergency ( string $message, array $context = [] ) : null
$message string
$context array
Résultat null

error() public méthode

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

info() public méthode

Example: User logs in, SQL logs.
public info ( string $message, array $context = [] ) : null
$message string
$context array
Résultat null

log() public méthode

Logs with an arbitrary level.
public log ( mixed $level, string $message, array $context = [] )
$level mixed
$message string
$context array

notice() public méthode

Normal but significant events.
public notice ( string $message, array $context = [] )
$message string
$context array

warning() public méthode

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
public warning ( string $message, array $context = [] )
$message string
$context array

Property Details

$enabled protected_oe property

protected $enabled