If [[traceLevel]] is greater than 0, additional call stack information about
the application code will be logged as well.
public log ( string | array $message, integer $level, string $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 [[Target|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. |