Skip to content

Commit c46ce57

Browse files
lacivertmattberther
authored andcommitted
update example code to show createLogger vs new (#194)
now winston uses createLogger function to get a new instance
1 parent 193a218 commit c46ce57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The DailyRotateFile transport can rotate files by minute, hour, day, month, year
4040
// do something fun
4141
});
4242

43-
var logger = new (winston.Logger)({
43+
var logger = winston.createLogger({
4444
transports: [
4545
transport
4646
]

0 commit comments

Comments
 (0)