UNPKG

445 BJavaScriptView Raw
1const { 'default': Logger, configure: nightingaleConfigure, levels } = require('nightingale');
2const ConsoleHandler = require('nightingale-console').default;
3
4const config = level => (
5 [
6 {
7 pattern: /^pob-build/,
8 handler: new ConsoleHandler(level),
9 },
10 ]
11);
12
13module.exports = {
14 config,
15 levels,
16 configure: level => nightingaleConfigure(config(level || levels.ERROR)),
17 logger: new Logger('pob-build'),
18};