@@ -6,7 +6,6 @@ import * as CONSTANTS from './constants';
6
6
import { AggregationCursor } from './cursor/aggregation_cursor' ;
7
7
import { ListCollectionsCursor } from './cursor/list_collections_cursor' ;
8
8
import { MongoAPIError , MongoInvalidArgumentError } from './error' ;
9
- import { Logger , LoggerOptions } from './logger' ;
10
9
import type { MongoClient , PkFactory } from './mongo_client' ;
11
10
import type { TODO_NODE_3286 } from './mongo_types' ;
12
11
import { AddUserOperation , AddUserOptions } from './operations/add_user' ;
@@ -64,8 +63,6 @@ const DB_OPTIONS_ALLOW_LIST = [
64
63
'readConcern' ,
65
64
'retryMiliSeconds' ,
66
65
'numberOfRetries' ,
67
- 'loggerLevel' ,
68
- 'logger' ,
69
66
'promoteBuffers' ,
70
67
'promoteLongs' ,
71
68
'bsonRegExp' ,
@@ -79,7 +76,6 @@ const DB_OPTIONS_ALLOW_LIST = [
79
76
export interface DbPrivate {
80
77
client : MongoClient ;
81
78
options ?: DbOptions ;
82
- logger : Logger ;
83
79
readPreference ?: ReadPreference ;
84
80
pkFactory : PkFactory ;
85
81
readConcern ?: ReadConcern ;
@@ -89,7 +85,7 @@ export interface DbPrivate {
89
85
}
90
86
91
87
/** @public */
92
- export interface DbOptions extends BSONSerializeOptions , WriteConcernOptions , LoggerOptions {
88
+ export interface DbOptions extends BSONSerializeOptions , WriteConcernOptions {
93
89
/** If the database authentication is dependent on another databaseName. */
94
90
authSource ?: string ;
95
91
/** Force server to assign _id values instead of driver. */
@@ -159,8 +155,6 @@ export class Db {
159
155
client,
160
156
// Options
161
157
options,
162
- // Logger instance
163
- logger : new Logger ( 'Db' , options ) ,
164
158
// Unpack read preference
165
159
readPreference : ReadPreference . fromOptions ( options ) ,
166
160
// Merge bson options
@@ -756,15 +750,6 @@ export class Db {
756
750
757
751
return new ChangeStream < TSchema , TChange > ( this , pipeline , resolveOptions ( this , options ) ) ;
758
752
}
759
-
760
- /** Return the db logger */
761
- getLogger ( ) : Logger {
762
- return this . s . logger ;
763
- }
764
-
765
- get logger ( ) : Logger {
766
- return this . s . logger ;
767
- }
768
753
}
769
754
770
755
// TODO(NODE-3484): Refactor into MongoDBNamespace
0 commit comments