browser.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use strict';
  2. /*
  3. * @api public
  4. * @property {function} format
  5. * Both the construction method and set of exposed
  6. * formats.
  7. */
  8. var format = exports.format = require('././format');
  9. /*
  10. * @api public
  11. * @method {function} levels
  12. * Registers the specified levels with logform.
  13. */
  14. exports.levels = require('././levels');
  15. //
  16. // Setup all transports as eager-loaded exports
  17. // so that they are static for the bundlers.
  18. //
  19. Object.defineProperty(format, 'align', { value: require('./align') });
  20. Object.defineProperty(format, 'cli', { value: require('./cli') });
  21. Object.defineProperty(format, 'combine', { value: require('./combine') });
  22. Object.defineProperty(format, 'colorize', { value: require('./colorize') });
  23. Object.defineProperty(format, 'json', { value: require('./json') });
  24. Object.defineProperty(format, 'label', { value: require('./label') });
  25. Object.defineProperty(format, 'logstash', { value: require('./logstash') });
  26. Object.defineProperty(format, 'metadata', { value: require('./metadata') });
  27. Object.defineProperty(format, 'padLevels', { value: require('./pad-levels') });
  28. Object.defineProperty(format, 'prettyPrint', { value: require('./pretty-print') });
  29. Object.defineProperty(format, 'printf', { value: require('./printf') });
  30. Object.defineProperty(format, 'simple', { value: require('./simple') });
  31. Object.defineProperty(format, 'splat', { value: require('./splat') });
  32. Object.defineProperty(format, 'timestamp', { value: require('./timestamp') });
  33. Object.defineProperty(format, 'uncolorize', { value: require('./uncolorize') });