index.js
function initFileLogger(filepath) {
  currentFilePath = filepath || currentFilePath;

  var logDir = path.dirname(currentFilePath);
  appenders.push(logToFile);
  if(!fs.existsSync(logDir)) fs.mkdirSync(logDir);
}
function initFileLogger(filepath) {
  currentFilePath = filepath || currentFilePath;

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