File tree 2 files changed +19
-4
lines changed 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -430,14 +430,30 @@ export class MongoLogger {
430
430
maxDocumentLength : number ;
431
431
logDestination : MongoDBLogWritable | Writable ;
432
432
433
+ emergency = this . log . bind ( this , 'emergency' ) ;
434
+ /** @experimental */
435
+ alert = this . log . bind ( this , 'alert' ) ;
436
+ /** @experimental */
437
+ critical = this . log . bind ( this , 'critical' ) ;
438
+ /** @experimental */
439
+ error = this . log . bind ( this , 'error' ) ;
440
+ /** @experimental */
441
+ warning = this . log . bind ( this , 'warn' ) ;
442
+ /** @experimental */
443
+ notice = this . log . bind ( this , 'notice' ) ;
444
+ /** @experimental */
445
+ info = this . log . bind ( this , 'info' ) ;
446
+ /** @experimental */
447
+ debug = this . log . bind ( this , 'debug' ) ;
448
+ /** @experimental */
449
+ trace = this . log . bind ( this , 'trace' ) ;
450
+
433
451
constructor ( options : MongoLoggerOptions ) {
434
452
this . componentSeverities = options . componentSeverities ;
435
453
this . maxDocumentLength = options . maxDocumentLength ;
436
454
this . logDestination = options . logDestination ;
437
455
}
438
456
439
- emergency = this . log . bind ( this , 'emergency' ) ;
440
-
441
457
private log (
442
458
severity : SeverityLevel ,
443
459
component : MongoLoggableComponent ,
Original file line number Diff line number Diff line change @@ -648,8 +648,7 @@ describe('class MongoLogger', function () {
648
648
expect ( stream . buffer ) . to . have . lengthOf ( 0 ) ;
649
649
} ) ;
650
650
651
- // TODO(NODE-4814): Unskip this test
652
- context . skip ( 'when the log severity is greater than what was configured' , function ( ) {
651
+ context ( 'when the log severity is greater than what was configured' , function ( ) {
653
652
it ( 'does not write to logDestination' , function ( ) {
654
653
const stream = new BufferingStream ( ) ;
655
654
const logger = new MongoLogger ( {
You can’t perform that action at this time.
0 commit comments