1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-13 00:24:10 +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; return $record;
} }
/**
* @param string $extraName
* @param string $serverName
* @return $this
*/
public function addExtraField($extraName, $serverName)
{
$this->extraFields[$extraName] = $serverName;
return $this;
}
/** /**
* @param array $extra * @param array $extra
* @return array * @return array