@@ -6,7 +6,6 @@ import * as CONSTANTS from './constants';
66import { AggregationCursor } from './cursor/aggregation_cursor' ;
77import { ListCollectionsCursor } from './cursor/list_collections_cursor' ;
88import { MongoAPIError , MongoInvalidArgumentError } from './error' ;
9- import { Logger , LoggerOptions } from './logger' ;
109import type { MongoClient , PkFactory } from './mongo_client' ;
1110import type { TODO_NODE_3286 } from './mongo_types' ;
1211import { AddUserOperation , AddUserOptions } from './operations/add_user' ;
@@ -64,8 +63,6 @@ const DB_OPTIONS_ALLOW_LIST = [
6463 'readConcern' ,
6564 'retryMiliSeconds' ,
6665 'numberOfRetries' ,
67- 'loggerLevel' ,
68- 'logger' ,
6966 'promoteBuffers' ,
7067 'promoteLongs' ,
7168 'bsonRegExp' ,
@@ -79,7 +76,6 @@ const DB_OPTIONS_ALLOW_LIST = [
7976export interface DbPrivate {
8077 client : MongoClient ;
8178 options ?: DbOptions ;
82- logger : Logger ;
8379 readPreference ?: ReadPreference ;
8480 pkFactory : PkFactory ;
8581 readConcern ?: ReadConcern ;
@@ -89,7 +85,7 @@ export interface DbPrivate {
8985}
9086
9187/** @public */
92- export interface DbOptions extends BSONSerializeOptions , WriteConcernOptions , LoggerOptions {
88+ export interface DbOptions extends BSONSerializeOptions , WriteConcernOptions {
9389 /** If the database authentication is dependent on another databaseName. */
9490 authSource ?: string ;
9591 /** Force server to assign _id values instead of driver. */
@@ -159,8 +155,6 @@ export class Db {
159155 client,
160156 // Options
161157 options,
162- // Logger instance
163- logger : new Logger ( 'Db' , options ) ,
164158 // Unpack read preference
165159 readPreference : ReadPreference . fromOptions ( options ) ,
166160 // Merge bson options
@@ -756,15 +750,6 @@ export class Db {
756750
757751 return new ChangeStream < TSchema , TChange > ( this , pipeline , resolveOptions ( this , options ) ) ;
758752 }
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- }
768753}
769754
770755// TODO(NODE-3484): Refactor into MongoDBNamespace
0 commit comments