Documentation

UidProcessor
in package
implements ProcessorInterface, ResettableInterface

Adds a unique identifier into records

Tags
author

Simon Mönch sm@webfactory.de

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

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

generateUid()

private generateUid(int $length) : string
Parameters
$length : int
Return values
string

Search results