File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
2.18/reference/driver/logging Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2929,10 +2929,13 @@ <h2 id="logging">Logging</h2>
2929
2929
</ tbody >
2930
2930
</ table >
2931
2931
2932
- < p > The following code example creates a MongoClient that logs debug messages to the console. To do so, the code performs the following steps:
2933
- - Creates a LoggerFactory, which specifies the logging destination and level
2934
- - Creates a LoggingSettings object, passing the LoggerFactory object as a parameter to the constructor
2935
- - Creates a MongoClient object, passing the LoggingSettings object as a parameter to the constructor</ p >
2932
+ < p > The following code example creates a MongoClient that logs debug messages to the console. To do so, the code performs the following steps:</ p >
2933
+
2934
+ < ul >
2935
+ < li > Creates a LoggerFactory, which specifies the logging destination and level</ li >
2936
+ < li > Creates a LoggingSettings object, passing the LoggerFactory object as a parameter to the constructor</ li >
2937
+ < li > Creates a MongoClient object, passing the LoggingSettings object as a parameter to the constructor</ li >
2938
+ </ ul >
2936
2939
2937
2940
< pre > < code class ="language-csharp "> using var loggerFactory = LoggerFactory.Create(b =>
2938
2941
{
You can’t perform that action at this time.
0 commit comments