log\Dispatcher getFlushInterval()

getFlushInterval() public method public integer getFlushInterval ( )return integer How many messages should be logged before they are sent to targets. This method returns the value of yii\log\Logger::$flushInterval.

log\Dispatcher dispatch()

dispatch() public method Dispatches the logged messages to $targets. public void dispatch ( $messages, $final )$messages array The logged messages $final boolean Whether this method is called at the end of the current application

log\Dispatcher $traceLevel

$traceLevel public property How many application call stacks should be logged together with each message. This method returns the value of yii\log\Logger::$traceLevel. Defaults to 0. public integer getTraceLevel ( )public void setTraceLevel ( $value )

log\Dispatcher $targets

$targets public property The log targets. Each array element represents a single log target instance or the configuration for creating the log target instance. public array|yii\log\Target[] $targets = []

log\Dispatcher $logger

$logger public property The logger. public yii\log\Logger getLogger ( )public void setLogger ( $value )

log\Dispatcher $flushInterval

$flushInterval public property How many messages should be logged before they are sent to targets. This method returns the value of yii\log\Logger::$flushInterval. public integer getFlushInterval ( )public void setFlushInterval ( $value )

log\DbTarget init()

init() public method Initializes the DbTarget component. This method will initialize the $db property to make sure it refers to a valid DB connection. public void init ( )throws yii\base\InvalidConfigException if $db is invalid.

log\DbTarget export()

export() public method Stores log messages to DB. public void export ( )

log\DbTarget $logTable

$logTable public property Name of the DB table to store cache content. Defaults to "log". public string $logTable = '{{%log}}'

log\DbTarget $db

$db public property The DB connection object or the application component ID of the DB connection. After the DbTarget object is created, if you want to change this property, you should only assign it with a DB connection object. Starting from version 2.0.2, this can also be a configuration array for creating the object. public yii\db\Connection|array|string $db = 'db'