UidProcessor
in package
implements
ProcessorInterface, ResettableInterface
Adds a unique identifier into records
Tags
Table of Contents
Interfaces
- ProcessorInterface
- An optional interface to allow labelling Monolog processors.
- ResettableInterface
- Handler or Processor implementing this interface will be reset when Logger::reset() is called.
Properties
- $uid : non-empty-string
Methods
- __construct() : mixed
- __invoke() : LogRecord
- getUid() : string
- reset() : void
- generateUid() : non-empty-string
Properties
$uid
private
non-empty-string
$uid
Methods
__construct()
public
__construct([int<1, 32> $length = 7 ]) : mixed
Parameters
- $length : int<1, 32> = 7
__invoke()
public
__invoke(LogRecord $record) : LogRecord
Parameters
- $record : LogRecord
Tags
Return values
LogRecord —The processed record
getUid()
public
getUid() : string
Return values
stringreset()
public
reset() : void
generateUid()
private
generateUid(positive-int $length) : non-empty-string
Parameters
- $length : positive-int