log\Target collect()

collect() public method Processes the given log messages. This method will filter the given messages with $levels and $categories. And if requested, it will also export the filtering result to specific medium (e.g. email). public void collect ( $messages, $final )$messages array Log messages to be processed. See yii\log\Logger::$messages for the structure of each message. $final boolean Whether this method is called at the end of the current application

log\Target $prefix

$prefix public property A PHP callable that returns a string to be prefixed to every exported message. If not set, getMessagePrefix() will be used, which prefixes the message with context information such as user IP, user ID and session ID. The signature of the callable should be function ($message). public callable $prefix = null

log\Target $messages

$messages public property The messages that are retrieved from the logger so far by this log target. Please refer to yii\log\Logger::$messages for the details about the message structure. public array $messages = []

log\Target $logVars

$logVars public property List of the PHP predefined variables that should be logged in a message. Note that a variable must be accessible via $GLOBALS. Otherwise it won't be logged. Defaults to ['_GET', '_POST', '_FILES', '_COOKIE', '_SESSION', '_SERVER']. Since version 2.0.9 additional syntax can be used: Each element could be specified as one of the following: var - var will be logged. var.key - only var[key] key will be logged. !var.key - var[key] key will be excluded. See also yii\he

log\Target $levels

$levels public property The message levels that this target is interested in. This is a bitmap of level values. Defaults to 0, meaning all available levels. public integer getLevels ( )public void setLevels ( $levels )

log\Target $exportInterval

$exportInterval public property How many messages should be accumulated before they are exported. Defaults to 1000. Note that messages will always be exported when the application terminates. Set this property to be 0 if you don't want to export messages until the application terminates. public integer $exportInterval = 1000

log\Target $except

$except public property List of message categories that this target is NOT interested in. Defaults to empty, meaning no uninteresting messages. If this property is not empty, then any category listed here will be excluded from $categories. You can use an asterisk at the end of a category so that the category can be used to match those categories sharing the same common prefix. For example, 'yii\db*' will match categories starting with 'yii\db\', such as 'yii\db\Connection'. See also $catego

log\Target $enabled

$enabled public property Whether to enable this log target. Defaults to true. public boolean $enabled = true

log\Target $categories

$categories public property List of message categories that this target is interested in. Defaults to empty, meaning all categories. You can use an asterisk at the end of a category so that the category may be used to match those categories sharing the same common prefix. For example, 'yii\db*' will match categories starting with 'yii\db\', such as 'yii\db\Connection'. public array $categories = []

log\SyslogTarget formatMessage()

formatMessage() public method Formats a log message for display as a string. public string formatMessage ( $message )$message array The log message to be formatted. The message structure follows that in yii\log\Logger::$messages. return string The formatted message