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:
@@ -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
|
||||
|
Reference in New Issue
Block a user