log(text, level) {
    if (level === undefined) {
      level = LogLevels.info;
    }

    const date = new Date();

    if (level <= this.consoleLevel) {
      console.log(date.toISOString() + ' ' + util.format(text));
    }

    if (level <= this.fileLevel) {
      this.logFile.write(date.toISOString() + ' ' + util.format(text) + '\n');
    }
  }
/**
   * Logs the given message to the console output and the output file. Will be skipped if does not have enough
   * severity level.
   * @param  {string} text  the messagess to be logged
   * @param  {number} level the severity level of the message
   */
Logs the given message to the console output and the output file. Will be skipped if does not have enough
severity level.
@param  {string} text  the messagess to be logged
@param  {number} level the severity level of the message
Logs the given message to the console output and the output file . Will be skipped if does not have enough severity level . @param { string } text the messagess to be logged @param { number } level the severity level of the message
log(text, level) {
    if (level === undefined) {
      level = LogLevels.info;
    }
    const date = new Date();
    if (level <= this.consoleLevel) {
      console.log(date.toISOString() + ' ' + util.format(text));
    }
    if (level <= this.fileLevel) {
      this.logFile.write(date.toISOString() + ' ' + util.format(text) + '\n');
    }
  }
log ( text , level ) { if ( level === undefined ) { level = LogLevels . info ; } const date = new Date ( ) ; if ( level <= this . consoleLevel ) { console . log ( date . toISOString ( ) + ' ' + util . format ( text ) ) ; } if ( level <= this . fileLevel ) { this . logFile . write ( date . toISOString ( ) + ' ' + util . format ( text ) + '\n' ) ; } }
Logs the given message to the console output and the output file.
Logs the given message to the console output and the output file .