Skip to content

Commit

Permalink
Merge pull request #461 from NLog/dev
Browse files Browse the repository at this point in the history
Release 4.8.5
  • Loading branch information
repo-ranger[bot] authored Sep 7, 2019
2 parents d72c156 + 6140307 commit 456ad60
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 21 deletions.
17 changes: 17 additions & 0 deletions .github/ranger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
merges:
- action: delete_branch
# - action: tag
labels:
'needs info':
action: close
delay: 7 days
comment: "Please add the requested info, so we could help you better! (This issue will be closed in 7 days)"
duplicate: close
wontfix: close
invalid: close
"squash when passing": merge
"rebase when passing": merge
"merge when passing": merge
#comments:
# - action: delete_comment
# pattern: "+1" # can also be a regular expression
2 changes: 2 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ See also [releases](https://github.com/NLog/NLog.Web/releases) and [milestones](

Date format: (year/month/day)

### v4.8.5 aspnetcore (2019/07/02)
- [#459](https://github.com/NLog/NLog.Web/pull/459) Fixed double logging when mixing UseNLog with AddNLog (@snakefoot)

### v4.8.4 aspnetcore (2019/07/02)
- [#436](https://github.com/NLog/NLog.Web/pull/436) Better checking for availability of session (@Defee, @snakefoot)
Expand Down
8 changes: 4 additions & 4 deletions NLog.Web.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 15.0.26730.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{52CA242D-DB20-41D9-8B79-A5A965ECA105}"
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
CHANGELOG.MD = CHANGELOG.MD
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NLog.Web", "src\NLog.Web\NLog.Web.csproj", "{E30DC886-8431-4CFA-90FA-38D9BE4203A0}"
EndProject
Expand Down Expand Up @@ -51,10 +55,6 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{E30DC886-8431-4CFA-90FA-38D9BE4203A0} = {52CA242D-DB20-41D9-8B79-A5A965ECA105}
{E318FB41-9712-44CA-B792-E865EFE1A564} = {52CA242D-DB20-41D9-8B79-A5A965ECA105}
{9E3F7ECB-A6ED-422E-8429-F96C510F59CF} = {52CA242D-DB20-41D9-8B79-A5A965ECA105}
{C02D4CED-0098-4526-BB95-6AB9D988036D} = {52CA242D-DB20-41D9-8B79-A5A965ECA105}
{D43A99EE-F27F-4552-9E23-C9686809AC3D} = {A9FB260C-9052-45D3-827A-20590F9D2FEF}
{0BF1FB4E-D5AE-46DE-9E80-E2DD40235552} = {A9FB260C-9052-45D3-827A-20590F9D2FEF}
EndGlobalSection
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 4.8.4.{build}
version: 4.8.5.{build}
clone_folder: c:\projects\nlogweb
configuration: Release
image: Visual Studio 2017
Expand All @@ -22,7 +22,7 @@ skip_tags: true

build_script:
- ps: |
$versionPrefix = "4.8.4"
$versionPrefix = "4.8.5"
$versionSuffix = ""
$versionBuild = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
$versionNuget = $versionPrefix
Expand Down
4 changes: 2 additions & 2 deletions src/NLog.Web.AspNetCore/AspNetExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private static void ConfigureServicesNLog(NLogAspNetCoreOptions options, IServic
ConfigurationItemFactory.Default.RegisterItemsFromAssembly(typeof(AspNetExtensions).GetTypeInfo().Assembly);
LogManager.AddHiddenAssembly(typeof(AspNetExtensions).GetTypeInfo().Assembly);

services.AddSingleton<ILoggerProvider>(serviceProvider =>
services.Replace(ServiceDescriptor.Singleton<ILoggerProvider, NLogLoggerProvider>(serviceProvider =>
{
ServiceLocator.ServiceProvider = serviceProvider;

Expand All @@ -173,7 +173,7 @@ private static void ConfigureServicesNLog(NLogAspNetCoreOptions options, IServic
}

return provider;
});
}));

//note: this one is called before services.AddSingleton<ILoggerFactory>
if ((options ?? NLogAspNetCoreOptions.Default).RegisterHttpContextAccessor)
Expand Down
12 changes: 6 additions & 6 deletions src/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
<TargetFrameworks>netstandard1.5;net451;net461;netstandard2.0</TargetFrameworks>
<Product>NLog.Web.AspNetCore v$(VersionPrefix)</Product>
<Description>
Use NLog with the ASP.NET Core platform. Adds helpers and layout renderers for websites and webapplications.
NLog LoggerProvider for Microsoft.Extensions.Logging and ASP.NET Core platform. Adds helpers and layout renderers for websites and web applications.

Supported platforms:

- For ASP.NET Core 2, .NET Standard 2.0+ and .NET 4.6+
- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x

- For ASP.NET Core 1, .NET Standard 1.5+ and .NET 4.5.x
</Description>
<Authors>Julian Verdurmen</Authors>
<Company>NLog</Company>
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear>
<Copyright>Copyright (c) 2015-$(CurrentYear) NLog Project - https://nlog-project.org/ </Copyright>
<AssemblyName>NLog.Web.AspNetCore</AssemblyName>
<PackageId>NLog.Web.AspNetCore</PackageId>
<PackageTags>logging;log;session;NLog;web;aspnet;aspnetcore;MVC;httpcontext</PackageTags>
<PackageTags>logging;log;NLog;web;aspnet;aspnetcore;MVC;Microsoft.Extensions.Logging;httpcontext;session</PackageTags>
<PackageReleaseNotes>
- Better checking for availability of session (@Defee, @snakefoot)
- Fixed double logging when mixing UseNLog with AddNLog (@snakefoot)
- Updated nuget-package description to make it easier to discover (@snakefoot)
</PackageReleaseNotes>
<PackageIconUrl>https://nlog-project.org/N.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/NLog/NLog.Web</PackageProjectUrl>
Expand Down Expand Up @@ -57,7 +57,7 @@ Supported platforms:
<DefineConstants>$(DefineConstants);ASP_NET_CORE;ASP_NET_CORE2</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NLog.Extensions.Logging" Version="1.5.1" />
<PackageReference Include="NLog.Extensions.Logging" Version="1.5.4" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
<Reference Include="System" />
Expand Down
12 changes: 7 additions & 5 deletions src/NLog.Web/NLog.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<TargetFrameworks>net35</TargetFrameworks>
<Product>NLog.Web v$(VersionPrefix)</Product>
<Description>
Extend NLog with targets and layout renderers for websites and web applications.
NLog logging for ASP.NET and ASP.NET MVC. Includes targets and layout renderers for websites and web applications.

This package is for ASP.NET 3.5+

For ASP.NET Core: Check https://www.nuget.org/packages/NLog.Web.AspNetCore
Expand All @@ -15,10 +16,10 @@ For ASP.NET Core: Check https://www.nuget.org/packages/NLog.Web.AspNetCore
<Copyright>Copyright (c) 2015-$(CurrentYear) NLog Project - https://nlog-project.org/ </Copyright>
<AssemblyName>NLog.Web</AssemblyName>
<PackageId>NLog.Web</PackageId>
<PackageTags>nlog log target layoutrenderer web asp.net httpcontext</PackageTags>
<PackageTags>nlog;log;logging;target;layoutrenderer;web;asp.net;MVC;httpcontext</PackageTags>
<PackageReleaseNotes>
- Better checking for availability of session (@Defee, @snakefoot)
- Fixed Nuget-Package generation to include dependencies and release notes (@snakefoot)
- Updated NLog dependency
- Updated nuget-package description to make it easier to discover (@snakefoot)
</PackageReleaseNotes>
<PackageIconUrl>https://nlog-project.org/N.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/NLog/NLog.Web</PackageProjectUrl>
Expand All @@ -33,9 +34,10 @@ For ASP.NET Core: Check https://www.nuget.org/packages/NLog.Web.AspNetCore
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyTitle>$(Title)</AssemblyTitle>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NLog" Version="4.6.5" />
<PackageReference Include="NLog" Version="4.6.7" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Web" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\NLog.Web.AspNetCore\NLog.Web.AspNetCore.csproj" />
<PackageReference Include="NSubstitute" Version="4.2.0" />
<PackageReference Include="NSubstitute" Version="4.2.1" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="xunit" Version="2.4.1" />
Expand Down
2 changes: 1 addition & 1 deletion tests/NLog.Web.Tests/NLog.Web.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" />
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
<PackageReference Include="NSubstitute" Version="4.2.0" />
<PackageReference Include="NSubstitute" Version="4.2.1" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
Expand Down

0 comments on commit 456ad60

Please sign in to comment.