code: function writeToLog(chunk, encoding, colorFunction) {
          // We stopped logging in a previous call to write: return now
          if (_logBytesWritten > LOG_SIZE_LIMIT) { return; }
  
          var chunkLength,
              logMsg;
  
          if (!Buffer.isBuffer(chunk)) {
              chunk = String(chunk);
              if (colorFunction) {
                  chunk = colorFunction(chunk);
              }
              chunkLength = Buffer.byteLength(chunk, encoding);
          } else {
              chunkLength = chunk.length;
          }
  
          // Calculate the new log file size
          _logBytesWritten += chunkLength;
  
          // Limit not yet reached: write to log file
          if (_logBytesWritten > LOG_SIZE_LIMIT) {
              logMsg = "The log file size limit of " + LOG_SIZE_LIMIT + " bytes was reached." +
                  " No further output will be written to this file.";
          } else {
              logMsg = chunk;
          }
  
          _logFilePaths.forEach(function (path) {
              try {
                  fs.appendFileSync(path, logMsg, { encoding: encoding });
              } catch (e) {
                  // do nothing
              }
          });
      }
docs: Use tail -F logs/generator_latest.txt to see the latest output