public static function createLog()
    {
        ///Ignore guset debug
        list ($route, $params) = Yii::$app->getRequest()->resolve();
        if(strpos($route, 'debug/default/toolbar') !== false)
            return;

        $route = Url::to(); ///an empty string: the currently requested URL will be returned;
        $description = '';
        $userId = (int)Yii::$app->user->id;

        $userIP = Yii::$app->request->userIP;

        $model = new Log();
        $data = [
            'route' => $route,
            'description' => $description,
            'user_id' => $userId,
            'user_ip' => $userIP,
            'created_at' => time(),
        ];
        $model->setAttributes($data);
        $model->save(false);
    }