Skip to content

Commit

Permalink
Version 5.1.5 (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Oct 25, 2022
1 parent 6d83153 commit 92c4be5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ See also [releases](https://github.com/NLog/NLog.Web/releases) and [milestones](

Date format: (year/month/day)

### Version 5.1.5 (2022/10/26)

- **NLog.Web.AspNetCore**
- [#875](https://github.com/NLog/NLog.Web/pull/875) Introduced NET6 since LTS (#875) (@snakefoot)
- [#875](https://github.com/NLog/NLog.Web/pull/875) Updated NLog.Extensions.Logging to v5.1.0 (#875) (@snakefoot)

- **NLog.Web**
- [#875](https://github.com/NLog/NLog.Web/pull/875) Updated dependency NLog v5.0.5 (#875) (@snakefoot)

### Version 5.1.4 (2022/09/01)

- **NLog.Web.AspNetCore**
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# creates NuGet package at \artifacts
dotnet --version

$versionPrefix = "5.1.4" # Also update version for minor versions in appveyor.yml
$versionPrefix = "5.1.5" # Also update version for minor versions in appveyor.yml
$versionSuffix = ""
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.1.2" targetFramework="net461" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net461" />
<package id="Modernizr" version="2.8.3" targetFramework="net461" />
<package id="NLog" version="5.0.2" targetFramework="net461" />
<package id="NLog" version="5.0.5" targetFramework="net461" />
<package id="System.Diagnostics.DiagnosticSource" version="4.4.1" targetFramework="net461" />
<package id="WebGrease" version="1.6.0" targetFramework="net461" />
</packages>
11 changes: 4 additions & 7 deletions src/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<TargetFrameworks>net461;netstandard2.0;netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks>net461;netstandard2.0;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<Product>NLog.Web.AspNetCore v$(VersionPrefix)</Product>
<Description>
NLog LoggerProvider for Microsoft.Extensions.Logging and ASP.NET Core platform. Adds helpers and layout renderers for websites and web applications.
Expand All @@ -21,11 +21,8 @@ Supported platforms:
<PackageId>NLog.Web.AspNetCore</PackageId>
<PackageTags>logging;log;NLog;web;aspnet;aspnetcore;MVC;Microsoft.Extensions.Logging;httpcontext</PackageTags>
<PackageReleaseNotes>
- Added embedded resource ILLink.Descriptors.xml (#865) (@snakefoot)
- Updated NLog.Extensions.Logging to v5.0.4 (#865) (@snakefoot)
- Loading NLog.config from ContentRootPath as last fallback (#861) (@snakefoot)
- Updated Microsoft.AspNetCore.Abstractions to match Microsoft.AspNetCore.Http (#858) (@snakefoot)
- Updated NLog.Extensions.Logging to v5.0.3 (#863) (@snakefoot)
- Introduced Introduced NET6 since LTS (@snakefoot)
- Updated NLog.Extensions.Logging to v5.1.0 (@snakefoot)

List of major changes in NLog 5.0: https://nlog-project.org/2022/05/16/nlog-5-0-finally-ready.html

Expand Down Expand Up @@ -78,7 +75,7 @@ List of available Layout Renderers: https://nlog-project.org/config/?tab=layout-
<DefineConstants>$(DefineConstants);ASP_NET_CORE;ASP_NET_CORE3</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NLog.Extensions.Logging" Version="5.0.4" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.1.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'net461' ">
<!-- Fixed to 2.1.0 as 2.1 is Long Term Supported (LTS) and only supported version for .NET Framework 4.6.1 -->
Expand Down
6 changes: 3 additions & 3 deletions src/NLog.Web.AspNetCore/NLogRequestLoggingMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private bool LogHttpRequest(HttpContext httpContext, Exception exception)
{
if (exception != null)
{
_logger.Log(logLevel, 0, exception, "HttpRequest Exception", Array.Empty<object>());
_logger.Log(logLevel, 0, exception, "HttpRequest Exception");
}
else
{
Expand All @@ -73,12 +73,12 @@ private bool LogHttpRequest(HttpContext httpContext, Exception exception)
case Microsoft.Extensions.Logging.LogLevel.Trace:
case Microsoft.Extensions.Logging.LogLevel.Debug:
case Microsoft.Extensions.Logging.LogLevel.Information:
_logger.Log(logLevel, 0, null, "HttpRequest Completed", Array.Empty<object>());
_logger.Log(logLevel, 0, null, "HttpRequest Completed");
break;
case Microsoft.Extensions.Logging.LogLevel.Warning:
case Microsoft.Extensions.Logging.LogLevel.Error:
case Microsoft.Extensions.Logging.LogLevel.Critical:
_logger.Log(logLevel, 0, null, "HttpRequest Failure", Array.Empty<object>());
_logger.Log(logLevel, 0, null, "HttpRequest Failure");
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/NLog.Web/NLog.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ List of available Layout Renderers: https://nlog-project.org/config/?tab=layout-
<DownloadFile SourceUrl="https://nlog-project.org/N.png" DestinationFolder="$(MSBuildThisFileDirectory)" />
</Target>
<ItemGroup>
<PackageReference Include="NLog" Version="5.0.4" />
<PackageReference Include="NLog" Version="5.0.5" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 92c4be5

Please sign in to comment.