Release notes
*Sourced from [NLog's releases](https://github.com/NLog/NLog/releases).*
> ## NLog 4.6.1
> #### Bugfixes
>
> - [#3199](https://github-redirect.dependabot.com/NLog/NLog/pull/3199) LoggingConfigurationParser - Fixed bug in handling of extensions prefix ([@snakefoot](https://github.com/snakefoot))
> - [#3253](https://github-redirect.dependabot.com/NLog/NLog/pull/3253) Fix wrong warnings on `` element (only wrong warnings) ([#3253](https://github-redirect.dependabot.com/NLog/NLog/issues/3253)) ([@snakefoot](https://github.com/snakefoot), [@304NotModified](https://github.com/304NotModified))
> - [#3195](https://github-redirect.dependabot.com/NLog/NLog/pull/3195) SimpleStringReader: fix DebuggerDisplay value ([#3195](https://github-redirect.dependabot.com/NLog/NLog/issues/3195)) ([@lobster2012](https://github.com/lobster2012)-user)
> - [#3198](https://github-redirect.dependabot.com/NLog/NLog/pull/3198) XmlLayout - Fixed missing encode of xml element value ([@snakefoot](https://github.com/snakefoot))
> - [#3191](https://github-redirect.dependabot.com/NLog/NLog/pull/3191) VariableLayoutRenderer - Fixed format-string for internal logger warning ([@snakefoot](https://github.com/snakefoot), [@lobster2012](https://github.com/lobster2012)-user)
> - [#3258](https://github-redirect.dependabot.com/NLog/NLog/pull/3258) Fix error with Embedded Assembly in LogAssemblyVersion ([@snakefoot](https://github.com/snakefoot))
>
> #### Improvements
>
> - [#3255](https://github-redirect.dependabot.com/NLog/NLog/pull/3255) Auto-flush on process exit improvements ([@snakefoot](https://github.com/snakefoot))
> - [#3189](https://github-redirect.dependabot.com/NLog/NLog/pull/3189) AsyncTaskTarget - Respect TaskDelayMilliseconds on low activity ([@snakefoot](https://github.com/snakefoot))
>
> #### Performance
>
> - [#3256](https://github-redirect.dependabot.com/NLog/NLog/pull/3256) ${NDLC} + ${NDC} - Faster checking when TopFrames = 1 ([@snakefoot](https://github.com/snakefoot))
> - [#3201](https://github-redirect.dependabot.com/NLog/NLog/pull/3201) ${GDC} reading is now lockfree ([#3201](https://github-redirect.dependabot.com/NLog/NLog/issues/3201)) ([@snakefoot](https://github.com/snakefoot))
>
> ## NLog 4.6
> See https://nlog-project.org/2019/03/20/nlog-4-6-is-live.html
>
> ### Features
>
> #### Main Feature
>
> * Database target: support for DbType for parameters (including SqlDbType) - [#2363](https://github-redirect.dependabot.com/NLog/NLog/issues/2363) + [#2899](https://github-redirect.dependabot.com/NLog/NLog/issues/2899) + [#3085](https://github-redirect.dependabot.com/NLog/NLog/issues/3085) + [#3091](https://github-redirect.dependabot.com/NLog/NLog/issues/3091) ([@hubo0831](https://github.com/hubo0831), [@ObikeDev](https://github.com/ObikeDev), [@sorvis](https://github.com/sorvis), [@304NotModified](https://github.com/304NotModified), [@snakefoot](https://github.com/snakefoot))
>
> #### XML config features
>
> * Added support for constant variable in level attributes - [#2709](https://github-redirect.dependabot.com/NLog/NLog/issues/2709) (level, minlevel, etc) ([@304NotModified](https://github.com/304NotModified))
> * Added defaultAction option for - [#2848](https://github-redirect.dependabot.com/NLog/NLog/issues/2848) ([@304NotModified](https://github.com/304NotModified))
> * Rules now support multiple '*' and '?' wildcards and in any position - [#3098](https://github-redirect.dependabot.com/NLog/NLog/issues/3098) ([@beppemarazzi](https://github.com/beppemarazzi))
> * Added Support ${currentdir}, ${basedir}, ${tempdir} and environment variables in internalLogFile value - [#3031](https://github-redirect.dependabot.com/NLog/NLog/issues/3031) + [#3092](https://github-redirect.dependabot.com/NLog/NLog/issues/3092) ([@snakefoot](https://github.com/snakefoot))
>
> #### New targets, layouts and layout renderers
>
> * Added XmlLayout - Render LogEventInfo.Properties as XML - [#2670](https://github-redirect.dependabot.com/NLog/NLog/issues/2670) + [#3014](https://github-redirect.dependabot.com/NLog/NLog/issues/3014) ([@snakefoot](https://github.com/snakefoot))
> * Added ${db-null} layout renderer - [#2849](https://github-redirect.dependabot.com/NLog/NLog/issues/2849) ([@304NotModified](https://github.com/304NotModified))
> * Added New ${substring}, ${left} & ${right} layoutrenderer wrappers - [#2907](https://github-redirect.dependabot.com/NLog/NLog/issues/2907) ([@304NotModified](https://github.com/304NotModified))
> * Added ${HostName} Layout Renderer for full computer DNS name - [#3071](https://github-redirect.dependabot.com/NLog/NLog/issues/3071) ([@amitsaha](https://github.com/amitsaha))
> * Added ${AppSetting} Layout Renderer (app.config + web.config) moved from NLog.Extended for NetFramework - [#3053](https://github-redirect.dependabot.com/NLog/NLog/issues/3053) ([@snakefoot](https://github.com/snakefoot))
> * Added noRawValue layout wrapper - [#3165](https://github-redirect.dependabot.com/NLog/NLog/issues/3165) ([@snakefoot](https://github.com/snakefoot))
>
> #### Additions to targets, layouts and layout renderers
>
> * AsyncTargetWrapper: added LogEventDropped + LogEventQueueGrow events - [#2610](https://github-redirect.dependabot.com/NLog/NLog/issues/2610) ([@Pomoinytskyi](https://github.com/Pomoinytskyi))
> * NetworkTarget - Support for SSL & TLS - [#2678](https://github-redirect.dependabot.com/NLog/NLog/issues/2678) ([@snakefoot](https://github.com/snakefoot))
> * JsonLayout: support for System.Dynamic-objects - [#2902](https://github-redirect.dependabot.com/NLog/NLog/issues/2902) ([@304NotModified](https://github.com/304NotModified))
> ... (truncated)
Changelog
*Sourced from [NLog's changelog](https://github.com/NLog/NLog/blob/v4.6.1/CHANGELOG.md).*
> ### V4.6.1 (2019/03/29)
>
> #### Bugfixes
>
> - [#3199](https://github-redirect.dependabot.com/NLog/NLog/pull/3199) LoggingConfigurationParser - Fixed bug in handling of extensions prefix ([@snakefoot](https://github.com/snakefoot))
> - [#3253](https://github-redirect.dependabot.com/NLog/NLog/pull/3253) Fix wrong warnings on `` element (only wrong warnings) ([#3253](https://github-redirect.dependabot.com/NLog/NLog/issues/3253)) ([@snakefoot](https://github.com/snakefoot), [@304NotModified](https://github.com/304NotModified))
> - [#3195](https://github-redirect.dependabot.com/NLog/NLog/pull/3195) SimpleStringReader: fix DebuggerDisplay value ([#3195](https://github-redirect.dependabot.com/NLog/NLog/issues/3195)) ([@lobster2012](https://github.com/lobster2012)-user)
> - [#3198](https://github-redirect.dependabot.com/NLog/NLog/pull/3198) XmlLayout - Fixed missing encode of xml element value ([@snakefoot](https://github.com/snakefoot))
> - [#3191](https://github-redirect.dependabot.com/NLog/NLog/pull/3191) VariableLayoutRenderer - Fixed format-string for internal logger warning ([@snakefoot](https://github.com/snakefoot), [@lobster2012](https://github.com/lobster2012)-user)
> - [#3258](https://github-redirect.dependabot.com/NLog/NLog/pull/3258) Fix error with Embedded Assembly in LogAssemblyVersion ([@snakefoot](https://github.com/snakefoot))
>
> #### Improvements
>
> - [#3255](https://github-redirect.dependabot.com/NLog/NLog/pull/3255) Auto-flush on process exit improvements ([@snakefoot](https://github.com/snakefoot))
> - [#3189](https://github-redirect.dependabot.com/NLog/NLog/pull/3189) AsyncTaskTarget - Respect TaskDelayMilliseconds on low activity ([@snakefoot](https://github.com/snakefoot))
>
> #### Performance
>
> - [#3256](https://github-redirect.dependabot.com/NLog/NLog/pull/3256) ${NDLC} + ${NDC} - Faster checking when TopFrames = 1 ([@snakefoot](https://github.com/snakefoot))
> - [#3201](https://github-redirect.dependabot.com/NLog/NLog/pull/3201) ${GDC} reading is now lockfree ([#3201](https://github-redirect.dependabot.com/NLog/NLog/issues/3201)) ([@snakefoot](https://github.com/snakefoot))
>
> ### V4.6
>
> #### Features
>
> - [#2363](https://github-redirect.dependabot.com/NLog/NLog/pull/2363) + [#2899](https://github-redirect.dependabot.com/NLog/NLog/pull/2899) + [#3085](https://github-redirect.dependabot.com/NLog/NLog/pull/3085) + [#3091](https://github-redirect.dependabot.com/NLog/NLog/pull/3091) Database target: support for DbType for parameters (including SqlDbType) - ([@hubo0831](https://github.com/hubo0831),[@ObikeDev](https://github.com/ObikeDev),[@sorvis](https://github.com/sorvis), [@304NotModified](https://github.com/304NotModified), [@snakefoot](https://github.com/snakefoot))
> - [#2610](https://github-redirect.dependabot.com/NLog/NLog/pull/2610) AsyncTargetWrapper with LogEventDropped- + LogEventQueueGrow-events ([@Pomoinytskyi](https://github.com/Pomoinytskyi))
> - [#2670](https://github-redirect.dependabot.com/NLog/NLog/pull/2670) + [#3014](https://github-redirect.dependabot.com/NLog/NLog/pull/3014) XmlLayout - Render LogEventInfo.Properties as XML ([@snakefoot](https://github.com/snakefoot))
> - [#2678](https://github-redirect.dependabot.com/NLog/NLog/pull/2678) NetworkTarget - Support for SSL & TLS ([@snakefoot](https://github.com/snakefoot))
> - [#2709](https://github-redirect.dependabot.com/NLog/NLog/pull/2709) XML Config: Support for constant variable in level attributes (level, minlevel, etc) ([@304NotModified](https://github.com/304NotModified))
> - [#2848](https://github-redirect.dependabot.com/NLog/NLog/pull/2848) Added defaultAction for ([@304NotModified](https://github.com/304NotModified))
> - [#2849](https://github-redirect.dependabot.com/NLog/NLog/pull/2849) IRawValue-interface and ${db-null} layout renderer ([@304NotModified](https://github.com/304NotModified))
> - [#2902](https://github-redirect.dependabot.com/NLog/NLog/pull/2902) JsonLayout with support for System.Dynamic-objects ([@304NotModified](https://github.com/304NotModified))
> - [#2907](https://github-redirect.dependabot.com/NLog/NLog/pull/2907) New Substring, Left & Right Wrappers ([@304NotModified](https://github.com/304NotModified))
> - [#3098](https://github-redirect.dependabot.com/NLog/NLog/pull/3098) support for one or more '*' and '?' wildcards and in any position ([@beppemarazzi](https://github.com/beppemarazzi))
> - [#2909](https://github-redirect.dependabot.com/NLog/NLog/pull/2909) AsyncTaskTarget - BatchSize + RetryCount ([@snakefoot](https://github.com/snakefoot))
> - [#3018](https://github-redirect.dependabot.com/NLog/NLog/pull/3018) ColoredConsoleTarget - Added EnableAnsiOutput option (VS Code support) ([@jp7677](https://github.com/jp7677) + [@snakefoot](https://github.com/snakefoot))
> - [#3031](https://github-redirect.dependabot.com/NLog/NLog/pull/3031) + [#3092](https://github-redirect.dependabot.com/NLog/NLog/pull/3092) Support ${currentdir},${basedir},${tempdir} and Environment Variables for internalLogFile when parsing nlog.config ([@snakefoot](https://github.com/snakefoot))
> - [#3050](https://github-redirect.dependabot.com/NLog/NLog/pull/3050) Added IncludeGdc property in JsonLayout ([@casperc89](https://github.com/casperc89))
> - [#3071](https://github-redirect.dependabot.com/NLog/NLog/pull/3071) ${HostName} Layout Renderer for full computer DNS name ([@amitsaha](https://github.com/amitsaha))
> - [#3053](https://github-redirect.dependabot.com/NLog/NLog/pull/3053) ${AppSetting} Layout Renderer (app.config + web.config) moved from NLog.Extended for NetFramework ([@snakefoot](https://github.com/snakefoot))
> - [#3060](https://github-redirect.dependabot.com/NLog/NLog/pull/3060) TargetWithContext - Support for PropertyType using IRawValue-interface ([@snakefoot](https://github.com/snakefoot))
> - [#3124](https://github-redirect.dependabot.com/NLog/NLog/pull/3124) NetworkTarget - Added support for KeepAliveTimeSeconds ([@snakefoot](https://github.com/snakefoot))
> - [#3129](https://github-redirect.dependabot.com/NLog/NLog/pull/3129) ConfigSetting - Preregister so it can be accessed without extension registration ([#3129](https://github-redirect.dependabot.com/NLog/NLog/issues/3129)) ([@snakefoot](https://github.com/snakefoot))
> * [#3165](https://github-redirect.dependabot.com/NLog/NLog/pull/3165) Added noRawValue layout wrapper ([@snakefoot](https://github.com/snakefoot))
>
>
> #### Enhancements
>
> - [#2989](https://github-redirect.dependabot.com/NLog/NLog/pull/2989) JsonLayout includes Type-property when rendering Exception-object ([@snakefoot](https://github.com/snakefoot))
> ... (truncated)
Commits
- [`af8a9a6`](https://github.com/NLog/NLog/commit/af8a9a62ca69d819543483760e1e76c4c2a38cd8) Merge pull request [#3257](https://github-redirect.dependabot.com/NLog/NLog/issues/3257) from NLog/release/4.6.1
- [`45c5d4f`](https://github.com/NLog/NLog/commit/45c5d4f218deb33b1b78481a85aff4d09ae6c385) Version 4.6.1
- [`a095392`](https://github.com/NLog/NLog/commit/a0953925259bc9a38178a1f25df4b89860166f95) Merge pull request [#3259](https://github-redirect.dependabot.com/NLog/NLog/issues/3259) from snakefoot/FileTargetCodeFactor
- [`fef122c`](https://github.com/NLog/NLog/commit/fef122c94d3ac63ab8198a667e1dd0ca920d16d8) Merge pull request [#3258](https://github-redirect.dependabot.com/NLog/NLog/issues/3258) from snakefoot/InternalLoggerAssemblyVersion
- [`0e17fd0`](https://github.com/NLog/NLog/commit/0e17fd0ee36ccb034b3016a0f8f552fc9f867fee) Update config.yml
- [`f264f86`](https://github.com/NLog/NLog/commit/f264f8695d217db83cfc27ac823e7609c74f2ab6) FileTarget refactoring removing CodeFactor issues
- [`2088a3d`](https://github.com/NLog/NLog/commit/2088a3d253ca2d349bb192bad5f47632071f2fae) LogAssemblyVersion - Embedded Assembly.Location can be null or empty
- [`729a857`](https://github.com/NLog/NLog/commit/729a8576d56a5ff1c2a279c8e389328dd9d81257) Merge branch 'master' into dev
- [`f19db8e`](https://github.com/NLog/NLog/commit/f19db8eaa67daa6a9b46f5a895579f0b4ecc6814) Fix wrong warnings on element + refactoring ([#3253](https://github-redirect.dependabot.com/NLog/NLog/issues/3253))
- [`472a06a`](https://github.com/NLog/NLog/commit/472a06aa69ca7214e22abc2f6e83afa059b6fa83) Merge pull request [#3255](https://github-redirect.dependabot.com/NLog/NLog/issues/3255) from snakefoot/StartAsyncTaskUserWorkItem
- Additional commits viewable in [compare view](https://github.com/NLog/NLog/compare/v4.5.11...v4.6.1)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot will not automatically merge this PR because it includes a minor update to a production dependency.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps NLog from 4.5.11 to 4.6.1.
Release notes
*Sourced from [NLog's releases](https://github.com/NLog/NLog/releases).* > ## NLog 4.6.1 > #### Bugfixes > > - [#3199](https://github-redirect.dependabot.com/NLog/NLog/pull/3199) LoggingConfigurationParser - Fixed bug in handling of extensions prefix ([@snakefoot](https://github.com/snakefoot)) > - [#3253](https://github-redirect.dependabot.com/NLog/NLog/pull/3253) Fix wrong warnings on `Changelog
*Sourced from [NLog's changelog](https://github.com/NLog/NLog/blob/v4.6.1/CHANGELOG.md).* > ### V4.6.1 (2019/03/29) > > #### Bugfixes > > - [#3199](https://github-redirect.dependabot.com/NLog/NLog/pull/3199) LoggingConfigurationParser - Fixed bug in handling of extensions prefix ([@snakefoot](https://github.com/snakefoot)) > - [#3253](https://github-redirect.dependabot.com/NLog/NLog/pull/3253) Fix wrong warnings on `Commits
- [`af8a9a6`](https://github.com/NLog/NLog/commit/af8a9a62ca69d819543483760e1e76c4c2a38cd8) Merge pull request [#3257](https://github-redirect.dependabot.com/NLog/NLog/issues/3257) from NLog/release/4.6.1 - [`45c5d4f`](https://github.com/NLog/NLog/commit/45c5d4f218deb33b1b78481a85aff4d09ae6c385) Version 4.6.1 - [`a095392`](https://github.com/NLog/NLog/commit/a0953925259bc9a38178a1f25df4b89860166f95) Merge pull request [#3259](https://github-redirect.dependabot.com/NLog/NLog/issues/3259) from snakefoot/FileTargetCodeFactor - [`fef122c`](https://github.com/NLog/NLog/commit/fef122c94d3ac63ab8198a667e1dd0ca920d16d8) Merge pull request [#3258](https://github-redirect.dependabot.com/NLog/NLog/issues/3258) from snakefoot/InternalLoggerAssemblyVersion - [`0e17fd0`](https://github.com/NLog/NLog/commit/0e17fd0ee36ccb034b3016a0f8f552fc9f867fee) Update config.yml - [`f264f86`](https://github.com/NLog/NLog/commit/f264f8695d217db83cfc27ac823e7609c74f2ab6) FileTarget refactoring removing CodeFactor issues - [`2088a3d`](https://github.com/NLog/NLog/commit/2088a3d253ca2d349bb192bad5f47632071f2fae) LogAssemblyVersion - Embedded Assembly.Location can be null or empty - [`729a857`](https://github.com/NLog/NLog/commit/729a8576d56a5ff1c2a279c8e389328dd9d81257) Merge branch 'master' into dev - [`f19db8e`](https://github.com/NLog/NLog/commit/f19db8eaa67daa6a9b46f5a895579f0b4ecc6814) Fix wrong warnings onDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot will not automatically merge this PR because it includes a minor update to a production dependency.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.