Class shardimage\shardimagephp\loggers\SysLogger

Inheritanceshardimage\shardimagephp\loggers\SysLogger » shardimage\shardimagephp\loggers\BaseLogger » Psr\Log\AbstractLogger

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
interpolate() Interpolates context values into the message placeholders. shardimage\shardimagephp\loggers\BaseLogger

Property Details

$facility protected property
protected integer $facility null
$ident protected property
protected string $ident null
$option protected property
protected integer $option null

Method Details

__construct() public method

public void __construct ( $ident 'shardimage-php', $option LOG_PID, $facility LOG_USER )
$ident string

[optional] The string ident is added to each message. See openlog().

$option integer

[optional] The option argument is used to indicate what logging options will be used when generating a log message. See openlog().

$facility integer

[optional] The facility argument is used to specify what type of program is logging the message. See openlog().

log() public method

public void log ( $level, $message, array $context = [] )
$level
$message
$context
setFacility() public method

public void setFacility ( $facility )
$facility integer

The facility argument is used to specify what type of program is logging the message. See openlog().

setIdent() public method

public void setIdent ( $ident )
$ident string

The string ident is added to each message. See openlog().

setOption() public method

public void setOption ( $option )
$option integer

The option argument is used to indicate what logging options will be used when generating a log message. See openlog().