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