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