39 if ($record[
'level'] < $this->level) {
43 $record[
'extra'][
'git'] = self::getGitInfo();
54 $branches = `git branch -v --no-abbrev`;
55 if (preg_match(
'{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) {
56 return self::$cache =
array(
57 'branch' => $matches[1],
58 'commit' => $matches[2],
62 return self::$cache =
array();
const DEBUG
Detailed debug information.
static toMonologLevel($level)
Converts PSR-3 levels to Monolog ones if necessary.
Create styles array
The data for the language used.
__construct($level=Logger::DEBUG)
Injects Git branch and Git commit SHA in all records.