@@ -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' ;
@@ -79,7 +78,6 @@ const DB_OPTIONS_ALLOW_LIST = [
79
78
export interface DbPrivate {
80
79
client : MongoClient ;
81
80
options ?: DbOptions ;
82
- logger : Logger ;
83
81
readPreference ?: ReadPreference ;
84
82
pkFactory : PkFactory ;
85
83
readConcern ?: ReadConcern ;
@@ -89,7 +87,7 @@ export interface DbPrivate {
89
87
}
90
88
91
89
/** @public */
92
- export interface DbOptions extends BSONSerializeOptions , WriteConcernOptions , LoggerOptions {
90
+ export interface DbOptions extends BSONSerializeOptions , WriteConcernOptions {
93
91
/** If the database authentication is dependent on another databaseName. */
94
92
authSource ?: string ;
95
93
/** Force server to assign _id values instead of driver. */
@@ -159,8 +157,6 @@ export class Db {
159
157
client,
160
158
// Options
161
159
options,
162
- // Logger instance
163
- logger : new Logger ( 'Db' , options ) ,
164
160
// Unpack read preference
165
161
readPreference : ReadPreference . fromOptions ( options ) ,
166
162
// Merge bson options
@@ -756,15 +752,6 @@ export class Db {
756
752
757
753
return new ChangeStream < TSchema , TChange > ( this , pipeline , resolveOptions ( this , options ) ) ;
758
754
}
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
755
}
769
756
770
757
// TODO(NODE-3484): Refactor into MongoDBNamespace
0 commit comments