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