mediatekformation

GitProcessor
in package
implements ProcessorInterface

Injects Git branch and Git commit SHA in all records

Tags
author

Nick Otter

author

Jordi Boggiano j.boggiano@seld.be

phpstan-import-type

Level from \Monolog\Logger

phpstan-import-type

LevelName from \Monolog\Logger

Interfaces, Classes, Traits and Enums

ProcessorInterface
An optional interface to allow labelling Monolog processors.

Table of Contents

$cache  : mixed
$level  : int
__construct()  : mixed
__invoke()  : array<string|int, mixed>
getGitInfo()  : array<string|int, mixed>

Properties

$cache

private static mixed $cache = null

array{branch: string, commit: string}|array|null

Methods

__construct()

public __construct([string|int $level = Logger::DEBUG ]) : mixed
Parameters
$level : string|int = Logger::DEBUG

The minimum logging level at which this Processor will be triggered

Tags
phpstan-param

Level|LevelName|LogLevel::* $level

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

getGitInfo()

private static getGitInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results