File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ var formatters = {
29
29
30
30
function Logger ( options ) {
31
31
var defaults = JSON . parse ( JSON . stringify ( Logger . DEFAULTS ) ) ;
32
- options = util . _extend ( defaults , options || { } ) ;
32
+ options = Object . assign ( { } , defaults , options || { } ) ;
33
33
var catcher = deLiner ( ) ;
34
34
var emitter = catcher ;
35
35
var transforms = [
@@ -103,7 +103,7 @@ function reLiner() {
103
103
}
104
104
105
105
function objectifier ( ) {
106
- return through ( objectify , null , { autoDestroy : false } ) ;
106
+ return through ( objectify , null , { autoDestroy : false } ) ;
107
107
108
108
function objectify ( line ) {
109
109
this . emit ( 'data' , {
@@ -127,7 +127,7 @@ function textFormatter(options) {
127
127
128
128
function textify ( logEvent ) {
129
129
var line = util . format ( '%s%s' , textifyTags ( logEvent . tag ) ,
130
- logEvent . msg . toString ( ) ) ;
130
+ logEvent . msg . toString ( ) ) ;
131
131
if ( options . timeStamp ) {
132
132
line = util . format ( '%s %s' , new Date ( logEvent . time ) . toISOString ( ) , line ) ;
133
133
}
You can’t perform that action at this time.
0 commit comments