async checkLogCount(){
        if(this.maxlogs && this.log_count >= this.maxlog){
            if(this.multiple_collections){
                await this.createNewCollection();
            }
            else{
                await this.deleteFirstDocument();
            }
        }
    }
/**
     * Check the number of logs and if higher than size or count,
     * start a new file or remove the first line from the file.
     * @returns {Promise}
     */
Check the number of logs and if higher than size or count,
start a new file or remove the first line from the file.
@returns {Promise}
Check the number of logs and if higher than size or count start a new file or remove the first line from the file . @returns { Promise }
async checkLogCount(){
        if(this.maxlogs && this.log_count >= this.maxlog){
            if(this.multiple_collections){
                await this.createNewCollection();
            }
            else{
                await this.deleteFirstDocument();
            }
        }
    }
async checkLogCount ( ) { if ( this . maxlogs && this . log_count >= this . maxlog ) { if ( this . multiple_collections ) { await this . createNewCollection ( ) ; } else { await this . deleteFirstDocument ( ) ; } } }
Check the number of logs and if higher than size or count,
 start a new file or remove the first line from the file.
Check the number of logs and if higher than size or count start a new file or remove the first line from the file .