public function process_logstore_database_log($data) {
        // Do not bother processing if we can not add it to a database.
        if (!self::$extdb || !self::$extdbtablename) {
            return;
        }

        $data = $this->process_log($data, get_config('logstore_database', 'jsonformat'));

        if ($data) {
            self::$extdb->insert_record(self::$extdbtablename, $data);
        }
    }
public function process_logstore_database_log($data) {
        // Do not bother processing if we can not add it to a database.
        if (!self::$extdb || !self::$extdbtablename) {
            return;
        }

        $data = $this->process_log($data, get_config('logstore_database', 'jsonformat'));

        if ($data) {
            self::$extdb->insert_record(self::$extdbtablename, $data);
        }
    }
public function process_logstore_database_log ( $ data ) { // Do not bother processing if we can not add it to a database. if ( ! self :: $ extdb || ! self :: $ extdbtablename ) { return ; } $ data = $ this -> process_log ( $ data , get_config ( 'logstore_database' , 'jsonformat' ) ) ; if ( $ data ) { self :: $ extdb -> insert_record ( self :: $ extdbtablename , $ data ) ; } }
Process logstore_database_log entries.

This method proceeds to read, complete, remap and, finally,
discard or save every log entry.

@param array() $data log entry.
@return null if we are not restoring the log.
Process logstore_database_log entries .