calculateTimings() public method Calculates the elapsed time for the given log messages. public array calculateTimings ( $messages )$messages array The log messages obtained from profiling return array Timings. Each element is an array consisting of these elements: info, category, timestamp, trace, level, duration.
$traceLevel public property How much call stack information (file name and line number) should be logged for each message. If it is greater than 0, at most that number of call stacks will be logged. Note that only application call stacks are counted. public integer $traceLevel = 0
$profiling public read-only property The profiling results. Each element is an array consisting of these elements: info, category, timestamp, trace, level, duration. public array getProfiling ( $categories = [], $excludeCategories = [] )
$messages public property Logged messages. This property is managed by log() and flush(). Each log message is of the following structure: [ [0] => message (mixed, can be a string or some complex data, such as an exception object) [1] => level (integer) [2] => category (string) [3] => timestamp (float, obtained by microtime(true)) [4] => traces (array, debug backtrace, contains the application code call stacks) ] public array $messages = []
$flushInterval public property How many messages should be logged before they are flushed from memory and sent to targets. Defaults to 1000, meaning the flush() method will be invoked once every 1000 messages logged. Set this property to be 0 if you don't want to flush messages until the application terminates. This property mainly affects how much memory will be taken by the logged messages. A smaller value means less memory, but will increase the execution time due to the overhead of flus
$elapsedTime public read-only property The total elapsed time in seconds for current request. public float getElapsedTime ( )
$dispatcher public property The message dispatcher public yii\log\Dispatcher $dispatcher = null
$dbProfiling public read-only property The first element indicates the number of SQL statements executed, and the second element the total time spent in SQL execution. public array getDbProfiling ( )
rotateFiles() protected method Rotates log files. protected void rotateFiles ( )
init() public method Initializes the route. This method is invoked after the route is created by the route manager. public void init ( )
Page 247 of 633