stdout.js 420 B

1234567891011121314151617
  1. /**
  2. * Module dependencies.
  3. */
  4. var Log = require('../lib/log')
  5. , log = new Log('notice');
  6. log.debug('a debug message');
  7. log.info('a info message');
  8. log.notice('a notice message');
  9. log.warning('a warning message');
  10. log.error('a error message');
  11. log.critical('a critical message');
  12. log.alert('a alert message');
  13. log.emergency('a emergency %s', 'message');
  14. log.emergency('a really %s emergency %s', 'bad', 'message');