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_ERROR, Logger::LEVEL_WARNING, Logger::LEVEL_INFO, Logger::LEVEL_TRACE, Logger::LEVEL_PROFILE_BEGIN, Logger::LEVEL_PROFILE_END.

$category string

The category of the message.

doc_Yii
2016-10-30 17:06:55
Comments
Leave a Comment

Please login to continue.