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 : string
Methods
- __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
__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
stringreset()
public
reset() : void
generateUid()
private
generateUid(int $length) : string
Parameters
- $length : int