PHP Interface ManaPHP\LoggerInterface

Datei anzeigen Open project: manaphp/manaphp

Public Methods

Method 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 method

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

error() public method

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

fatal() public method

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

getLevel() public method

Returns the current log level
public getLevel ( ) : string
return string

getLevels() public method

public getLevels ( ) : array
return array

info() public method

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

setLevel() public method

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

warning() public method

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