code: function initFileLogger(filepath) {
    currentFilePath = filepath || currentFilePath;
  
    var logDir = path.dirname(currentFilePath);
    appenders.push(logToFile);
    if(!fs.existsSync(logDir)) fs.mkdirSync(logDir);
  }
docs: Initialzes the file logger
  @param filepath path to the log file