log\SyslogTarget export()

export() public method Writes log messages to syslog public void export ( )

log\SyslogTarget $identity

$identity public property Syslog identity public string $identity = null

log\SyslogTarget $facility

$facility public property Syslog facility. public integer $facility = LOG_USER

log\Logger log()

log() public method Logs a message with the given type and category. If $traceLevel is greater than 0, additional call stack information about the application code will be logged as well. public void log ( $message, $level, $category = 'application' )$message string|array The message to be logged. This can be a simple string or a more complex data structure that will be handled by a log target. $level integer The level of the message. This must be one of the following: Logger::LEVEL_

log\Logger init()

init() public method Initializes the logger by registering flush() as a shutdown function. public void init ( )

log\Logger getProfiling()

getProfiling() public method Returns the profiling results. By default, all profiling results will be returned. You may provide $categories and $excludeCategories as parameters to retrieve the results that you are interested in. public array getProfiling ( $categories = [], $excludeCategories = [] )$categories array List of categories that you are interested in. You can use an asterisk at the end of a category to do a prefix match. For example, 'yii\db*' will match categories starting wi

log\Logger getLevelName()

getLevelName() public static method Returns the text display of the specified level. public static string getLevelName ( $level )$level integer The message level, e.g. LEVEL_ERROR, LEVEL_WARNING. return string The text display of the level

log\Logger getElapsedTime()

getElapsedTime() public method Returns the total elapsed time since the start of the current request. This method calculates the difference between now and the timestamp defined by constant YII_BEGIN_TIME which is evaluated at the beginning of yii\BaseYii class file. public float getElapsedTime ( )return float The total elapsed time in seconds for current request.

log\Logger getDbProfiling()

getDbProfiling() public method Returns the statistical results of DB queries. The results returned include the number of SQL statements executed and the total time spent. public array getDbProfiling ( )return array The first element indicates the number of SQL statements executed, and the second element the total time spent in SQL execution.

log\Logger flush()

flush() public method Flushes log messages from memory to targets. public void flush ( $final = false )$final boolean Whether this is a final call during a request.