public static function add($message, $page = P, $action = P_DO, $time = NOW, $user_id = USER_ID, $url = SELF)
    {

        // This is required for db autocreate
        $log_check = new AppLogEntityRepository();

        $app_log = new AppLogEntity();
        $app_log->loadDataFromArray([
            'ts' => $time,
            'user_id' => $user_id,
            'url' => $url,
            'msg' => $message,
            'p' => $page,
            'do' => $action,
        ])
            ->save();
    }
public static function add($message, $page = P, $action = P_DO, $time = NOW, $user_id = USER_ID, $url = SELF)
    {

        // This is required for db autocreate
        $log_check = new AppLogEntityRepository();

        $app_log = new AppLogEntity();
        $app_log->loadDataFromArray([
            'ts' => $time,
            'user_id' => $user_id,
            'url' => $url,
            'msg' => $message,
            'p' => $page,
            'do' => $action,
        ])
            ->save();
    }
public static function add ( $ message , $ page = P , $ action = P_DO , $ time = NOW , $ user_id = USER_ID , $ url = SELF ) { // This is required for db autocreate $ log_check = new AppLogEntityRepository ( ) ; $ app_log = new AppLogEntity ( ) ; $ app_log -> loadDataFromArray ( [ 'ts' => $ time , 'user_id' => $ user_id , 'url' => $ url , 'msg' => $ message , 'p' => $ page , 'do' => $ action , ] ) -> save ( ) ; }
Create one log message
@param string $message
@param string $page
@param string $action
@param mixed $time
@param int $user_id
@param mixed|string $url
Create one log message