1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-23 14:32:44 +01:00

Allow to add extra fields

This commit is contained in:
Menno Holtkamp 2014-08-03 15:48:29 +02:00
parent 12545cda2f
commit 49c469668a

View File

@ -74,6 +74,18 @@ class WebProcessor
return $record;
}
/**
* @param string $extraName
* @param string $serverName
* @return $this
*/
public function addExtraField($extraName, $serverName)
{
$this->extraFields[$extraName] = $serverName;
return $this;
}
/**
* @param array $extra
* @return array