diff --git a/framework/BaseYii.php b/framework/BaseYii.php index cc9acc9452..a980bc43a9 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -378,7 +378,8 @@ class BaseYii * Logs a trace message. * Trace messages are logged mainly for development purpose to see * 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. */ public static function trace($message, $category = 'application') @@ -392,7 +393,8 @@ class BaseYii * Logs an error message. * An error message is typically logged when an unrecoverable error occurs * 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. */ public static function error($message, $category = 'application') @@ -404,7 +406,8 @@ class BaseYii * Logs a warning message. * A warning message is typically logged when an error occurs while the execution * 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. */ public static function warning($message, $category = 'application') @@ -416,7 +419,8 @@ class BaseYii * Logs an informative message. * An informative message is typically logged by an application to keep record of * 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. */ public static function info($message, $category = 'application')