File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,7 @@ const logger = file => {
1818 } ;
1919} ;
2020
21- logger . defaultSerializer = obj => {
22- const res = [ ] ;
23- for ( const key in obj ) {
24- res . push ( obj [ key ] ) ;
25- }
26- return res . join ( '\t' ) ;
27- } ;
21+ logger . defaultSerializer = obj => Object . values ( obj ) . join ( '\t' ) ;
2822
2923logger . colors = {
3024 warning : '\x1b[1;33m' ,
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ const logger = require('./logger.js');
55// On application initialization
66
77const application = { } ;
8- // application.logger = logger(process.stdout)(JSON.stringify )('app1');
9- application . logger = logger ( './file.log' ) ( ) ( 'app1' ) ;
8+ application . logger = logger ( process . stdout ) ( ) ( 'app1' ) ;
9+ // application.logger = logger('./file.log')(JSON.stringify )('app1');
1010
1111// In module1
1212
You can’t perform that action at this time.
0 commit comments