source: trip-planner-front/node_modules/log4js/lib/appenders/stdout.js@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 418 bytes
RevLine 
[6a3a178]1
2
3function stdoutAppender(layout, timezoneOffset) {
4 return (loggingEvent) => {
5 process.stdout.write(`${layout(loggingEvent, timezoneOffset)}\n`);
6 };
7}
8
9function configure(config, layouts) {
10 let layout = layouts.colouredLayout;
11 if (config.layout) {
12 layout = layouts.layout(config.layout.type, config.layout);
13 }
14 return stdoutAppender(layout, config.timezoneOffset);
15}
16
17exports.configure = configure;
Note: See TracBrowser for help on using the repository browser.