Skip to content

Commit 8b7bf6d

Browse files
authored
Merge pull request #155 from 304NotModified/patch-1
Update NLog docs
2 parents 8f8a3ac + 35cb2c1 commit 8b7bf6d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

readme.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,20 @@ Then add the relevant sections to your `app.config` or `web.config`:
5454
```
5555

5656
## NLog Quickstart
57-
There are different packages for each major NLog version. Install the correct package for your referenced NLog version. This example installs the adapter for NLog v2.0:
57+
There are different packages for each major NLog version. Install the correct package for your referenced NLog version. This example installs the adapter for NLog v4.1:
5858

59-
PM> Install-Package Common.Logging.NLog20
59+
PM> Install-Package Common.Logging.NLog41
6060

61-
If you are using NLog v3.0, you should install the `Common.Logging.NLog30` package and so on.
61+
If you are using NLog v4.0, you should install the `Common.Logging.NLog40` package and so on.
62+
63+
NB: Because NLog is using semver and the same strong name for every major version, Common.Logging.NLog40 and Common.Logging.NLog41 works for all NLog 4.x version. Common.Logging.NLog41 is the recommend version
6264

6365
The app config should then have a common logging section like below. Be sure to match the `factoryAdapter type` with your installed `Common.Logging.NLogXX` version.
6466

6567
```xml
6668
<common>
6769
<logging>
68-
<factoryAdapter type="Common.Logging.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog20">
70+
<factoryAdapter type="Common.Logging.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog41">
6971
<arg key="configType" value="INLINE" />
7072
</factoryAdapter>
7173
</logging>

0 commit comments

Comments
 (0)