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:
parent
12545cda2f
commit
49c469668a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user