public static function error($msg, $model = null, $category = 'application')
    {
        Yii::error([
            'msg'   => $msg,
            'model' => $model,
        ], $category);
    }
public static function error($msg, $model = null, $category = 'application')
    {
        Yii::error([
            'msg'   => $msg,
            'model' => $model,
        ], $category);
    }
public static function error ( $ msg , $ model = null , $ category = 'application' ) { Yii :: error ( [ 'msg' => $ msg , 'model' => $ model , ] , $ category ) ; }
Calls for error log.
@param mixed $msg Message
@param string $model Model
@param string $category
Calls for error log .