File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Docs/reference/content/reference/driver Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ You can configure logging using the [`LoggingSettings`]({{< apiref "T_MongoDB_Dr
22
22
23
23
24
24
The following code example creates a MongoClient that logs debug messages to the console. To do so, the code performs the following steps:
25
+
25
26
- Creates a LoggerFactory, which specifies the logging destination and level
26
27
- Creates a LoggingSettings object, passing the LoggerFactory object as a parameter to the constructor
27
28
- Creates a MongoClient object, passing the LoggingSettings object as a parameter to the constructor
@@ -71,4 +72,4 @@ using var loggerFactory = LoggerFactory.Create(b =>
71
72
var settings = MongoClientSettings .FromConnectionString (" mongodb://localhost:27017" );
72
73
settings .LoggingSettings = new LoggingSettings (loggerFactory );
73
74
var client = new MongoClient (settings );
74
- ```
75
+ ```
You can’t perform that action at this time.
0 commit comments