async checkLogCount(){
        if((this.maxlogs && this.log_count >= this.maxlogs) || (this.maxsize && this.filesize >= this.maxsize)){
            if(this.multiplefiles){
                await this.createNewFile();
            }
            else{
                await this.deleteFirstLine();
            }
        }
    }
/**
     * 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.maxlogs) || (this.maxsize && this.filesize >= this.maxsize)){
            if(this.multiplefiles){
                await this.createNewFile();
            }
            else{
                await this.deleteFirstLine();
            }
        }
    }
async checkLogCount ( ) { if ( ( this . maxlogs && this . log_count >= this . maxlogs ) || ( this . maxsize && this . filesize >= this . maxsize ) ) { if ( this . multiplefiles ) { await this . createNewFile ( ) ; } else { await this . deleteFirstLine ( ) ; } } }
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 .