PHP Interface ManaPHP\LoggerInterface

Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

Méthode Description
debug ( string $message, array $context = [] ) : static Sends/Writes a debug message to the log
error ( string $message, array $context = [] ) : static Sends/Writes an error message to the log
fatal ( string $message, array $context = [] ) : static Sends/Writes a critical message to the log
getLevel ( ) : string Returns the current log level
getLevels ( ) : array
info ( string $message, array $context = [] ) : static Sends/Writes an info message to the log
setLevel ( string $level ) : static Filters the logs sent to the handlers to be greater or equals than a specific level
warning ( string $message, array $context = [] ) : static Sends/Writes a warning message to the log

Method Details

debug() public méthode

Sends/Writes a debug message to the log
public debug ( string $message, array $context = [] ) : static
$message string
$context array
Résultat static

error() public méthode

Sends/Writes an error message to the log
public error ( string $message, array $context = [] ) : static
$message string
$context array
Résultat static

fatal() public méthode

Sends/Writes a critical message to the log
public fatal ( string $message, array $context = [] ) : static
$message string
$context array
Résultat static

getLevel() public méthode

Returns the current log level
public getLevel ( ) : string
Résultat string

getLevels() public méthode

public getLevels ( ) : array
Résultat array

info() public méthode

Sends/Writes an info message to the log
public info ( string $message, array $context = [] ) : static
$message string
$context array
Résultat static

setLevel() public méthode

Filters the logs sent to the handlers to be greater or equals than a specific level
public setLevel ( string $level ) : static
$level string
Résultat static

warning() public méthode

Sends/Writes a warning message to the log
public warning ( string $message, array $context = [] ) : static
$message string
$context array
Résultat static