Documentation

MercurialProcessor
in package
implements ProcessorInterface

Injects Hg branch and Hg revision number in all records

Tags
author

Jonathan A. Schweder jonathanschweder@gmail.com

Table of Contents

Interfaces

ProcessorInterface
An optional interface to allow labelling Monolog processors.

Properties

$cache  : array{branch: string, revision: string}|array<string|int, never>|null
$level  : Level

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

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
phpstan-param

value-ofLevel::VALUES|value-ofLevel::NAMES|Level|LogLevel::* $level

getMercurialInfo()

private static getMercurialInfo() : array{branch: string, revision: string}|array<string|int, never>
Return values
array{branch: string, revision: string}|array<string|int, never>

        
On this page

Search results