PHP Class ManaPHP\Logger

Inheritance: extends Component, implements manaphp\LoggerInterface
Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

Свойство Type Description
$adapter ManaPHP\Logger\AdapterInterface

Protected Properties

Свойство Type Description
$_level string
$_s2i array

Méthodes publiques

Méthode Description
__construct ( string | array | ManaPHP\Logger\AdapterInterface $options = [] ) Logger constructor.
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
log ( string $level, string $message, array $context ) : static
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
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

__construct() public méthode

Logger constructor.
public __construct ( string | array | ManaPHP\Logger\AdapterInterface $options = [] )
$options string | array | ManaPHP\Logger\AdapterInterface

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

log() public méthode

public log ( string $level, string $message, array $context ) : static
$level string
$message string
$context array
Résultat static

setDependencyInjector() public méthode

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
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

Property Details

$_level protected_oe property

protected string $_level
Résultat string

$_s2i protected_oe property

protected array $_s2i
Résultat array

$adapter public_oe property

public AdapterInterface,ManaPHP\Logger $adapter
Résultat ManaPHP\Logger\AdapterInterface