cabinjs / axe

:axe: Logger-agnostic wrapper that normalizes logs regardless of arg style. Great for large dev teams, old/new projects, and works w/Pino, Bunyan, Winston, console, and more. It is lightweight, performant, highly-configurable, and automatically adds OS, CPU, and Git information to your logs. Hooks, dot-notation remap, omit, and pick of metadata.
https://forwardemail.net/docs/best-practices-for-node-js-logging
MIT License
50 stars 11 forks source link

Allow instanceName #3

Closed OmgImAlexis closed 7 years ago

OmgImAlexis commented 7 years ago

instanceName will allow us to prepend logging.

const Logger = require('@ladjs/logger');
const logger = new Logger({ instanceName: 'WEB' });

logger.info('web server listening on 3000');
// [WEB] info: web server listening on 3000
niftylettuce commented 7 years ago

@OmgImAlexis can this be closed now? 🎉

OmgImAlexis commented 7 years ago

Yep. 🎉

OmgImAlexis commented 7 years ago

Closed in https://github.com/ladjs/logger/commit/ae4ed0ef665adaa40966e770df3cd23d13a1932b