1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 15:14:14 +02:00

Merge pull request #404 from holtkamp/patch-2

Allow to add extra fields
This commit is contained in:
Jordi Boggiano
2014-09-10 16:15:09 +01:00

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