@@ -66,8 +66,8 @@ async function registerWithSink (server, level, func) {
66
66
const plugin = {
67
67
plugin : Pino ,
68
68
options : {
69
- stream : stream ,
70
- level : level
69
+ stream,
70
+ level
71
71
}
72
72
}
73
73
@@ -79,9 +79,9 @@ async function tagsWithSink (server, tags, func) {
79
79
const plugin = {
80
80
plugin : Pino ,
81
81
options : {
82
- stream : stream ,
82
+ stream,
83
83
level : 'trace' ,
84
- tags : tags
84
+ tags
85
85
}
86
86
}
87
87
@@ -192,7 +192,7 @@ experiment('logs each request', () => {
192
192
const plugin = {
193
193
plugin : Pino ,
194
194
options : {
195
- stream : stream ,
195
+ stream,
196
196
level : 'info'
197
197
}
198
198
}
@@ -431,7 +431,7 @@ experiment('logs each request', () => {
431
431
const plugin = {
432
432
plugin : Pino ,
433
433
options : {
434
- stream : stream ,
434
+ stream,
435
435
level : 'info' ,
436
436
logRequestComplete : true ,
437
437
customRequestErrorMessage : ( request , error ) => `request failed for ${ request . method } ${ request . path } with error: ${ error . message } `
@@ -652,7 +652,7 @@ experiment('logs through server.log', () => {
652
652
const plugin = {
653
653
plugin : Pino ,
654
654
options : {
655
- stream : stream ,
655
+ stream,
656
656
level : 'debug' ,
657
657
allTags : 'debug'
658
658
}
@@ -677,7 +677,7 @@ experiment('logs through server.log', () => {
677
677
const plugin = {
678
678
plugin : Pino ,
679
679
options : {
680
- stream : stream
680
+ stream
681
681
}
682
682
}
683
683
@@ -699,7 +699,7 @@ experiment('logs through server.log', () => {
699
699
const plugin = {
700
700
plugin : Pino ,
701
701
options : {
702
- stream : stream ,
702
+ stream,
703
703
customLevels : {
704
704
bar : 123
705
705
} ,
@@ -796,7 +796,7 @@ experiment('logs through request.log', () => {
796
796
const plugin = {
797
797
plugin : Pino ,
798
798
options : {
799
- stream : stream ,
799
+ stream,
800
800
level : 'debug'
801
801
}
802
802
}
@@ -829,7 +829,7 @@ experiment('disables log events', () => {
829
829
const plugin = {
830
830
plugin : Pino ,
831
831
options : {
832
- stream : stream ,
832
+ stream,
833
833
level : 'info' ,
834
834
logEvents : false
835
835
}
@@ -849,7 +849,7 @@ experiment('disables log events', () => {
849
849
const plugin = {
850
850
plugin : Pino ,
851
851
options : {
852
- stream : stream ,
852
+ stream,
853
853
level : 'info' ,
854
854
logEvents : false
855
855
}
@@ -870,7 +870,7 @@ experiment('disables log events', () => {
870
870
const plugin = {
871
871
plugin : Pino ,
872
872
options : {
873
- stream : stream ,
873
+ stream,
874
874
level : 'info' ,
875
875
logEvents : false
876
876
}
@@ -890,7 +890,7 @@ experiment('disables log events', () => {
890
890
const plugin = {
891
891
plugin : Pino ,
892
892
options : {
893
- stream : stream ,
893
+ stream,
894
894
level : 'info' ,
895
895
logEvents : false
896
896
}
@@ -952,7 +952,7 @@ experiment('logging with `request` event listener', () => {
952
952
const plugin = {
953
953
plugin : Pino ,
954
954
options : {
955
- stream : stream ,
955
+ stream,
956
956
logEvents : false
957
957
}
958
958
}
@@ -1047,7 +1047,7 @@ experiment('request.logger.child() bindings', () => {
1047
1047
const plugin = {
1048
1048
plugin : Pino ,
1049
1049
options : {
1050
- stream : stream ,
1050
+ stream,
1051
1051
level : 'info'
1052
1052
}
1053
1053
}
@@ -1071,7 +1071,7 @@ experiment('request.logger.child() bindings', () => {
1071
1071
const plugin = {
1072
1072
plugin : Pino ,
1073
1073
options : {
1074
- stream : stream ,
1074
+ stream,
1075
1075
level : 'info' ,
1076
1076
getChildBindings : ( req ) => ( { custom : true } )
1077
1077
}
@@ -1101,7 +1101,7 @@ experiment('options.logRequestStart', () => {
1101
1101
const plugin = {
1102
1102
plugin : Pino ,
1103
1103
options : {
1104
- stream : stream ,
1104
+ stream,
1105
1105
level : 'info'
1106
1106
}
1107
1107
}
@@ -1128,7 +1128,7 @@ experiment('options.logRequestStart', () => {
1128
1128
const plugin = {
1129
1129
plugin : Pino ,
1130
1130
options : {
1131
- stream : stream ,
1131
+ stream,
1132
1132
level : 'info'
1133
1133
}
1134
1134
}
@@ -1153,7 +1153,7 @@ experiment('options.logRequestStart', () => {
1153
1153
const plugin = {
1154
1154
plugin : Pino ,
1155
1155
options : {
1156
- stream : stream ,
1156
+ stream,
1157
1157
level : 'info' ,
1158
1158
logRequestStart : true
1159
1159
}
@@ -1251,7 +1251,7 @@ experiment('options.logRequestStart', () => {
1251
1251
const plugin = {
1252
1252
plugin : Pino ,
1253
1253
options : {
1254
- stream : stream ,
1254
+ stream,
1255
1255
level : 'info' ,
1256
1256
logRequestStart : true
1257
1257
}
@@ -1288,7 +1288,7 @@ experiment('options.logRequestStart', () => {
1288
1288
const plugin = {
1289
1289
plugin : Pino ,
1290
1290
options : {
1291
- stream : stream ,
1291
+ stream,
1292
1292
level : 'info' ,
1293
1293
getChildBindings : ( req ) => ( { requestId : 'request1234' } ) ,
1294
1294
logRequestStart : true
@@ -1325,7 +1325,7 @@ experiment('options.logRequestStart', () => {
1325
1325
const plugin = {
1326
1326
plugin : Pino ,
1327
1327
options : {
1328
- stream : stream ,
1328
+ stream,
1329
1329
level : 'info' ,
1330
1330
logRequestStart : true
1331
1331
}
@@ -1351,7 +1351,7 @@ experiment('options.logRequestStart', () => {
1351
1351
const plugin = {
1352
1352
plugin : Pino ,
1353
1353
options : {
1354
- stream : stream ,
1354
+ stream,
1355
1355
level : 'info' ,
1356
1356
logRequestStart : true ,
1357
1357
customRequestStartMessage : ( request ) => `request for ${ request . path } `
@@ -1382,7 +1382,7 @@ experiment('options.logRequestComplete', () => {
1382
1382
const plugin = {
1383
1383
plugin : Pino ,
1384
1384
options : {
1385
- stream : stream ,
1385
+ stream,
1386
1386
level : 'info'
1387
1387
}
1388
1388
}
@@ -1409,7 +1409,7 @@ experiment('options.logRequestComplete', () => {
1409
1409
const plugin = {
1410
1410
plugin : Pino ,
1411
1411
options : {
1412
- stream : stream ,
1412
+ stream,
1413
1413
level : 'info' ,
1414
1414
logRequestComplete : true
1415
1415
}
@@ -1441,7 +1441,7 @@ experiment('options.logRequestComplete', () => {
1441
1441
const plugin = {
1442
1442
plugin : Pino ,
1443
1443
options : {
1444
- stream : stream ,
1444
+ stream,
1445
1445
level : 'info' ,
1446
1446
logRequestStart : true ,
1447
1447
logRequestComplete : false
@@ -1523,7 +1523,7 @@ experiment('options.logRequestComplete', () => {
1523
1523
const plugin = {
1524
1524
plugin : Pino ,
1525
1525
options : {
1526
- stream : stream ,
1526
+ stream,
1527
1527
level : 'info' ,
1528
1528
logRequestComplete : true ,
1529
1529
customRequestCompleteMessage : ( request , responseTime ) => `request completed for ${ request . method } ${ request . path } with ${ request . response . statusCode } after ${ responseTime } ms`
@@ -1550,7 +1550,7 @@ experiment('logging with mergeHapiLogData option enabled', () => {
1550
1550
const plugin = {
1551
1551
plugin : Pino ,
1552
1552
options : {
1553
- stream : stream ,
1553
+ stream,
1554
1554
level : 'info' ,
1555
1555
mergeHapiLogData : true
1556
1556
}
@@ -1574,7 +1574,7 @@ experiment('logging with mergeHapiLogData option enabled', () => {
1574
1574
const plugin = {
1575
1575
plugin : Pino ,
1576
1576
options : {
1577
- stream : stream ,
1577
+ stream,
1578
1578
level : 'info' ,
1579
1579
mergeHapiLogData : true
1580
1580
}
@@ -1598,7 +1598,7 @@ experiment('logging with mergeHapiLogData option enabled', () => {
1598
1598
const plugin = {
1599
1599
plugin : Pino ,
1600
1600
options : {
1601
- stream : stream ,
1601
+ stream,
1602
1602
level : 'info' ,
1603
1603
mergeHapiLogData : true
1604
1604
}
@@ -1622,7 +1622,7 @@ experiment('logging with mergeHapiLogData option enabled', () => {
1622
1622
const plugin = {
1623
1623
plugin : Pino ,
1624
1624
options : {
1625
- stream : stream ,
1625
+ stream,
1626
1626
level : 'info' ,
1627
1627
mergeHapiLogData : true ,
1628
1628
messageKey : 'message'
0 commit comments