TomFrost / Bristol

Insanely configurable logging for Node.js
MIT License
113 stars 19 forks source link

Logs to file not flushed on exit #55

Open dandv opened 6 years ago

dandv commented 6 years ago
import logger from 'bristol';
logger.addTarget('console');
logger.addTarget('file', {
  file: 'bristol.log',
});

logger.info('Not logged to the file');
process.exit(1);

Winston has the same issue.