Skip to content

Commit aa756d7

Browse files
committed
Trying to improve readability of sentence, caused by poor english skills
1 parent 96f92cd commit aa756d7

4 files changed

+11
-10
lines changed

_posts/2021-08-25-nlog-5-0-preview1-ready.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,17 @@ NLog LoggingProvider no longer follows the Microsoft Logger filtering configurat
274274
* **Reason:** It is confusing to have two seperate systems for filtering logging output. New users might
275275
think NLog is not working correctly after having configured NLog LoggingRules, because Microsoft LoggerFactory filters are interfering.
276276

277-
* **Workaround:** Explicit specify `RemoveLoggerFactoryFilter = false` for NLogProviderOptions when calling `UseNLog()` to enable old behavior,
277+
* **Workaround:** Update NLog Logging rules to suppress the unwanted output using the new [finalMinLevel](https://github.com/NLog/NLog/wiki/Logging-Rules-FinalMinLevel)-option.
278+
Alternative specify `RemoveLoggerFactoryFilter = false` for NLogProviderOptions when calling `UseNLog()` to revert to old behavior,
278279
where Microsoft LoggerFactory filters specified in appsetting.json also applies to NLog.
279280

280-
Alternatively the new `finalMinLevel`-option can be used to replicate the behavior of Microsoft Logging Filters:
281+
The new [finalMinLevel](https://github.com/NLog/NLog/wiki/Logging-Rules-FinalMinLevel)-option can be used to replicate the behavior of Microsoft Logging Filters:
281282
```xml
282283
<rules>
283284
<logger name="System.*" finalMinLevel="Warn" />
284285
<logger name="Microsoft.*" finalMinLevel="Warn" />
285286
<logger name="Microsoft.Hosting.Lifetime*" finalMinLevel="Info" /> <!-- Overrides previous rule -->
286-
<logger name="*" minLevel="Debug" writeTo="console" />
287+
<logger name="*" minLevel="Debug" writeTo="console" /> <!-- Replace with your targets -->
287288
</rules>
288289
```
289290

_posts/2023-05-30-nlog-5-2-trim-warnings.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ layout: post
33
title: NLog 5.2 without trim warnings
44
---
55

6-
NLog v5.2 changes the recommended way for explicit registration of NLog extensions.
7-
Already now the automatic scanning for assemblies containing NLog extensions was disabled with NLog v5.
8-
Instead NLog users are encouraged to explicitly specify what NLog extensions to load.
6+
NLog v5.2 is changing the recommended way for explicit registration of NLog extensions.
7+
NLog v5.0 stopped the automatic scanning for assemblies with NLog extensions,
8+
instead NLog uses was encouraged to explicitly specify what NLog extensions to load.
99

1010
NLog extensions are normally loaded by just specifying the assembly-name, and then NLog will dynamically
11-
load the assembly, and NLog will then use reflection to enumerate the types inside the assembly.
11+
load the assembly, and use reflection to enumerate the types inside the assembly.
1212

1313
When using NET trimming to strip away all unreferenced code, then dynamic assembly loading will not work well.
1414
Dynamically loaded assemblies might reference code that have been stripped from the application. To prevent
1515
all these issues then NET trimming will make build warnings about such possible pitfalls. Thus previous versions
1616
of NLog are reported as being unsafe for NET trimming, because of the ability to dynamically load assemblies.
1717

18-
NLog v5.2 now recommends that one registers the individual NLog extension types like this:
18+
NLog v5.2 now recommends to register the individual NLog extension types like this:
1919
```csharp
2020
NLog.LogManager.Setup().SetupExtensions(ext => {
2121
ext.RegisterTarget<MyCustomTarget>();

_posts/2024-10-01-nlog-6-0-goals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ NLog should not become a blocker, when wanting to try out AOT builds.
3838

3939
This means NLog v5 will now go into maintenance mode (together with NLog v4), and focus
4040
will now be on getting NLog v6 preview build ready. If having suggestions for the future direction
41-
of the [NLog v6 milestone](https://github.com/NLog/NLog/milestone/29) then [comments are wellcome](https://github.com/NLog/NLog/issues/4931).
41+
of the [NLog v6 milestone](https://github.com/NLog/NLog/milestone/29) then [comments are welcome](https://github.com/NLog/NLog/issues/4931).

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1 class="page-header" id="features">Features</h1>
2929
<h4>Easy to configure</h4>
3030
<p>
3131
NLog is very easy to configure, both through <a href="https://github.com/nlog/NLog/wiki/Configuration-file">configuration file</a>
32-
and <a href="https://github.com/nlog/NLog/wiki/Configuration-API">programmatically</a>.
32+
and <a href="https://github.com/NLog/NLog/wiki/Configure-from-code">programmatically</a>.
3333
Even without restarting the application, the configuration can be changed.
3434
</p>
3535
</div>

0 commit comments

Comments
 (0)