mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 23:50:38 +08:00
Append phpdoc for log methods
This commit is contained in:
@@ -378,7 +378,8 @@ class BaseYii
|
|||||||
* Logs a trace message.
|
* Logs a trace message.
|
||||||
* Trace messages are logged mainly for development purpose to see
|
* Trace messages are logged mainly for development purpose to see
|
||||||
* the execution work flow of some code.
|
* the execution work flow of some code.
|
||||||
* @param string $message the message to be logged.
|
* @param string|array $message the message to be logged. This can be a simple string or a more
|
||||||
|
* complex data structure, such as arrays.
|
||||||
* @param string $category the category of the message.
|
* @param string $category the category of the message.
|
||||||
*/
|
*/
|
||||||
public static function trace($message, $category = 'application')
|
public static function trace($message, $category = 'application')
|
||||||
@@ -392,7 +393,8 @@ class BaseYii
|
|||||||
* Logs an error message.
|
* Logs an error message.
|
||||||
* An error message is typically logged when an unrecoverable error occurs
|
* An error message is typically logged when an unrecoverable error occurs
|
||||||
* during the execution of an application.
|
* during the execution of an application.
|
||||||
* @param string $message the message to be logged.
|
* @param string|array $message the message to be logged. This can be a simple string or a more
|
||||||
|
* complex data structure, such as arrays.
|
||||||
* @param string $category the category of the message.
|
* @param string $category the category of the message.
|
||||||
*/
|
*/
|
||||||
public static function error($message, $category = 'application')
|
public static function error($message, $category = 'application')
|
||||||
@@ -404,7 +406,8 @@ class BaseYii
|
|||||||
* Logs a warning message.
|
* Logs a warning message.
|
||||||
* A warning message is typically logged when an error occurs while the execution
|
* A warning message is typically logged when an error occurs while the execution
|
||||||
* can still continue.
|
* can still continue.
|
||||||
* @param string $message the message to be logged.
|
* @param string|array $message the message to be logged. This can be a simple string or a more
|
||||||
|
* complex data structure, such as arrays.
|
||||||
* @param string $category the category of the message.
|
* @param string $category the category of the message.
|
||||||
*/
|
*/
|
||||||
public static function warning($message, $category = 'application')
|
public static function warning($message, $category = 'application')
|
||||||
@@ -416,7 +419,8 @@ class BaseYii
|
|||||||
* Logs an informative message.
|
* Logs an informative message.
|
||||||
* An informative message is typically logged by an application to keep record of
|
* An informative message is typically logged by an application to keep record of
|
||||||
* something important (e.g. an administrator logs in).
|
* something important (e.g. an administrator logs in).
|
||||||
* @param string $message the message to be logged.
|
* @param string|array $message the message to be logged. This can be a simple string or a more
|
||||||
|
* complex data structure, such as arrays.
|
||||||
* @param string $category the category of the message.
|
* @param string $category the category of the message.
|
||||||
*/
|
*/
|
||||||
public static function info($message, $category = 'application')
|
public static function info($message, $category = 'application')
|
||||||
|
|||||||
Reference in New Issue
Block a user