MercurialProcessor
in package
implements
ProcessorInterface
Injects Hg branch and Hg revision number in all records
Tags
Table of Contents
Interfaces
- ProcessorInterface
- An optional interface to allow labelling Monolog processors.
Properties
Methods
- __construct() : mixed
- __invoke() : LogRecord
- getMercurialInfo() : array{branch: string, revision: string}|array<string|int, never>
Properties
$cache
private
static array{branch: string, revision: string}|array<string|int, never>|null
$cache
= null
$level
private
Level
$level
Methods
__construct()
public
__construct([int|string|Level $level = Level::Debug ]) : mixed
Parameters
- $level : int|string|Level = Level::Debug
-
The minimum logging level at which this Processor will be triggered
Tags
__invoke()
public
__invoke(LogRecord $record) : LogRecord
Parameters
- $record : LogRecord
Tags
Return values
LogRecord —The processed record
getMercurialInfo()
private
static getMercurialInfo() : array{branch: string, revision: string}|array<string|int, never>