public function sendMessage($level, $message)
    {
        $this->db->insert($this->tableName, [
            'level' => $level,
            'message' => $message,
            'date_create' => $_SERVER['REQUEST_TIME']
        ]);
    }
public function sendMessage($level, $message)
    {
        $this->db->insert($this->tableName, [
            'level' => $level,
            'message' => $message,
            'date_create' => $_SERVER['REQUEST_TIME']
        ]);
    }
public function sendMessage ( $ level , $ message ) { $ this -> db -> insert ( $ this -> tableName , [ 'level' => $ level , 'message' => $ message , 'date_create' => $ _SERVER [ 'REQUEST_TIME' ] ] ) ; }
Send log message into DB

@access public

@param integer $level level number
@param string $message message to write

@return void
Send log message into DB