PHP Class Plum\Plum\Converter\LogConverter

Author: Florian Eckerstorfer ([email protected])
Inheritance: implements Plum\Plum\Converter\ConverterInterface
Show file Open project: plumphp/plum Class Usage Examples

Protected Properties

Property Type Description
$level string
$logger Psr\Log\LoggerInterface
$message string

Public Methods

Method Description
__construct ( Psr\Log\LoggerInterface $logger, string $level = 'debug', string | null $message = null )
convert ( mixed $item ) : mixed

Method Details

__construct() public method

public __construct ( Psr\Log\LoggerInterface $logger, string $level = 'debug', string | null $message = null )
$logger Psr\Log\LoggerInterface
$level string
$message string | null

convert() public method

public convert ( mixed $item ) : mixed
$item mixed
return mixed

Property Details

$level protected property

protected string $level
return string

$logger protected property

protected LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface

$message protected property

protected string $message
return string