syslog.js 556 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * syslog.js: Config that conform to syslog logging levels.
  3. *
  4. * (C) 2010 Charlie Robbins
  5. * MIT LICENCE
  6. */
  7. 'use strict';
  8. /**
  9. * Default levels for the syslog configuration.
  10. * @type {Object}
  11. */
  12. exports.levels = {
  13. emerg: 0,
  14. alert: 1,
  15. crit: 2,
  16. error: 3,
  17. warning: 4,
  18. notice: 5,
  19. info: 6,
  20. debug: 7
  21. };
  22. /**
  23. * Default levels for the syslog configuration.
  24. * @type {Object}
  25. */
  26. exports.colors = {
  27. emerg: 'red',
  28. alert: 'yellow',
  29. crit: 'red',
  30. error: 'red',
  31. warning: 'red',
  32. notice: 'yellow',
  33. info: 'green',
  34. debug: 'blue'
  35. };