Documentation

UidProcessor
in package
implements ProcessorInterface, ResettableInterface

Adds a unique identifier into records

Tags
author

Simon Mönch sm@webfactory.de

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  : mixed

Methods

__construct()  : mixed
__invoke()  : array<string|int, mixed>
getUid()  : string
reset()  : mixed
generateUid()  : mixed

Properties

Methods

__construct()

public __construct([mixed $length = 7 ]) : mixed
Parameters
$length : mixed = 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 records

generateUid()

private generateUid(mixed $length) : mixed
Parameters
$length : mixed

        
On this page

Search results