mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
11 lines
272 B
JavaScript
11 lines
272 B
JavaScript
const EventBus = require('./bus');
|
|
|
|
const bus = new EventBus('jsdoc');
|
|
const loggerFuncs = {};
|
|
|
|
['debug', 'error', 'info', 'fatal', 'verbose', 'warn'].forEach((fn) => {
|
|
loggerFuncs[fn] = (...args) => bus.emit(`logger:${fn}`, ...args);
|
|
});
|
|
|
|
module.exports = loggerFuncs;
|