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  : non-empty-string

Methods

__construct()  : mixed
__invoke()  : LogRecord
getUid()  : string
reset()  : void
generateUid()  : non-empty-string

Properties

Methods

__construct()

public __construct([int<1, 32> $length = 7 ]) : mixed
Parameters
$length : int<1, 32> = 7

generateUid()

private generateUid(positive-int $length) : non-empty-string
Parameters
$length : positive-int
Return values
non-empty-string

        
On this page

Search results