Skip to content

ContextProcessor ​

Type
Class
Namespace
craft\log
Inherits
craft\log\ContextProcessor
Implements
Monolog\Processor\ProcessorInterface
Since
4.0.0

Class ContextProcessor

View source

Protected Properties ​

PropertyDescription
dumpVars
key
vars

dumpVars ​

Default value
false

View source

key ​

Default value
'context'

View source

vars ​

Default value
[]

View source

Public Methods ​

MethodDescription
__construct()
__invoke()

__construct() ​

View source

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() ​

View source

Arguments ​

  • $record

Protected Methods ​

MethodDescription
dumpVars()
filterVars()

dumpVars() ​

View source

Arguments ​

  • $vars

filterVars() ​

View source

Arguments ​

  • $vars