ContextProcessor ​
- Type
- Class
- Namespace
- craft\log
- Inherits
- craft\log\ContextProcessor
- Implements
Monolog\Processor\ProcessorInterface
- Since
- 4.0.0
Class ContextProcessor
Protected Properties ​
Property | Description |
---|---|
dumpVars | |
key | |
vars |
dumpVars
​
- Default value
false
key
​
- Default value
'context'
vars
​
- Default value
[]
Public Methods ​
Method | Description |
---|---|
__construct() | |
__invoke() |
__construct()
​
Arguments ​
$vars
(array) – The global variables to include {@see \yii\log\Target::$logVars}$key
(string) – The key in the record to push context data$dumpVars
(boolean) – Whether to dump vars as a readable, multi-line string in the message
__invoke()
​
Arguments ​
$record
Protected Methods ​
Method | Description |
---|---|
dumpVars() | |
filterVars() |
dumpVars()
​
Arguments ​
$vars
filterVars()
​
Arguments ​
$vars