Skip to content

Commit

Permalink
Updated to NHibernate 5.3.14 (#8)
Browse files Browse the repository at this point in the history
* Updated packages.

* Updated to NHibernate 5.3.14
  • Loading branch information
mgernand authored Nov 19, 2022
1 parent dda3119 commit 8e7de81
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NHibernate Logging Providers

The current version **5.3.11** is available as [NuGet package](http://nuget.org/packages/NHibernate.Logging/).
This version is built against NHibernate 5.3.11 and Common.Logging 3.4.1.
The current version **5.3.14** is available as [NuGet package](http://nuget.org/packages/NHibernate.Logging/).
This version is built against NHibernate 5.3.14 and Common.Logging 3.4.1.

NHibernate Logging Providers makes it possible to use your favourite logger with NHibernate.
You no longer have to use log4net. The new NHibernate (since NH3) logging abstraction makes
Expand Down
12 changes: 9 additions & 3 deletions Source/NHibernate.Logging.CommonLogging/CommonLoggingLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ public class CommonLoggingLogger : INHibernateLogger
{
private readonly ILog logger;

public CommonLoggingLogger(ILog logger)
/// <summary>
/// Initializes a new instance of the <see cref="CommonLoggingLogger"/> type.
/// </summary>
/// <param name="logger"></param>
public CommonLoggingLogger(ILog logger)
{
this.logger = logger;
}

public bool IsEnabled(NHibernateLogLevel logLevel)
/// <inheritdoc />
public bool IsEnabled(NHibernateLogLevel logLevel)
{
switch (logLevel)
{
Expand All @@ -39,7 +44,8 @@ public bool IsEnabled(NHibernateLogLevel logLevel)
}
}

public void Log(NHibernateLogLevel logLevel, NHibernateLogValues state, Exception exception)
/// <inheritdoc />
public void Log(NHibernateLogLevel logLevel, NHibernateLogValues state, Exception exception)
{
switch (logLevel)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
/// </summary>
public sealed class CommonLoggingLoggerFactory : INHibernateLoggerFactory
{
public INHibernateLogger LoggerFor(string keyName)
/// <inheritdoc />
public INHibernateLogger LoggerFor(string keyName)
{
return new CommonLoggingLogger(LogManager.GetLogger(keyName));
}

public INHibernateLogger LoggerFor(Type type)
/// <inheritdoc />
public INHibernateLogger LoggerFor(Type type)
{
return new CommonLoggingLogger(LogManager.GetLogger(type));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<PropertyGroup>
<IncludeSymbols>false</IncludeSymbols>
<Copyright>Copyright © 2013-2022 Matthias Gernand. All rights reserved.</Copyright>
<Version>5.3.13</Version>
<AssemblyVersion>5.3.13</AssemblyVersion>
<FileVersion>5.3.13</FileVersion>
<Version>5.3.14</Version>
<AssemblyVersion>5.3.14</AssemblyVersion>
<FileVersion>5.3.14</FileVersion>
<Authors>Matthias Gernand</Authors>
<Description>Common.Logging logging provider for NHibernate.</Description>
<NeutralLanguage>en</NeutralLanguage>
Expand Down Expand Up @@ -46,7 +46,7 @@

<ItemGroup>
<PackageReference Include="Common.Logging" Version="3.4.1" />
<PackageReference Include="NHibernate" Version="5.3.13" />
<PackageReference Include="NHibernate" Version="5.3.14" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="FluentAssertions" Version="6.8.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="coverlet.collector" Version="3.1.2">
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 8e7de81

Please sign in to comment.