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
vars

dumpVars

Default value
false

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}
  • $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