Skip to content

Commit

Permalink
Improve XML docs for AddNLog and UseNLog
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot committed Dec 5, 2023
1 parent a72df32 commit 0649592
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 2 additions & 4 deletions src/NLog.Extensions.Hosting/Extensions/ConfigureExtensions.cs
Expand Up @@ -17,8 +17,7 @@ namespace NLog.Extensions.Hosting
public static class ConfigureExtensions
{
/// <summary>
/// Enable and configure NLog as a logging provider for buildable generic host (.NET Core 2.1+).
/// Can be used in discrete containers as well.
/// Enable NLog as logging provider for Microsoft Extension Logging
/// </summary>
/// <param name="builder"></param>
/// <returns>IHostBuilder for chaining</returns>
Expand All @@ -29,8 +28,7 @@ public static IHostBuilder UseNLog(this IHostBuilder builder)
}

/// <summary>
/// Enable and configure NLog as a logging provider for buildable generic host (.NET Core 2.1+).
/// Can be used in discrete containers as well.
/// Enable NLog as logging provider for Microsoft Extension Logging
/// </summary>
/// <param name="builder"></param>
/// <param name="options">NLogProviderOptions object to configure NLog behavior</param>
Expand Down
10 changes: 5 additions & 5 deletions src/NLog.Extensions.Logging/Extensions/ConfigureExtensions.cs
Expand Up @@ -113,21 +113,21 @@ public static ILoggingBuilder AddNLog(this ILoggingBuilder builder, NLogProvider
}

/// <summary>
/// Enable NLog as logging provider for Microsoft Extension Logging
/// Enable NLog as logging provider for Microsoft Extension Logging, and assigns the NLog <paramref name="configuration"/>.
/// </summary>
/// <param name="builder"></param>
/// <param name="configuration">New NLog config.</param>
/// <param name="configuration">New NLog config to be assigned.</param>
/// <returns>ILoggingBuilder for chaining</returns>
public static ILoggingBuilder AddNLog(this ILoggingBuilder builder, LoggingConfiguration configuration)
{
return AddNLog(builder, configuration, null);
}

/// <summary>
/// Enable NLog as logging provider for Microsoft Extension Logging
/// Enable NLog as logging provider for Microsoft Extension Logging, and assigns the NLog <paramref name="configuration"/>.
/// </summary>
/// <param name="builder"></param>
/// <param name="configuration">New NLog config.</param>
/// <param name="configuration">New NLog config to be assigned.</param>
/// <param name="options">NLog Logging Provider options</param>
/// <returns>ILoggingBuilder for chaining</returns>
public static ILoggingBuilder AddNLog(this ILoggingBuilder builder, LoggingConfiguration configuration, NLogProviderOptions options)
Expand All @@ -145,7 +145,7 @@ public static ILoggingBuilder AddNLog(this ILoggingBuilder builder, LoggingConfi
}

/// <summary>
/// Enable NLog as logging provider for Microsoft Extension Logging
/// Enable NLog as logging provider for Microsoft Extension Logging, and load NLog config from <paramref name="configFileRelativePath"/>
/// </summary>
/// <param name="builder"></param>
/// <param name="configFileRelativePath">relative path to NLog configuration file.</param>
Expand Down
2 changes: 1 addition & 1 deletion src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj
Expand Up @@ -77,7 +77,7 @@ List of major changes in NLog 5.0: https://nlog-project.org/2021/08/25/nlog-5-0-
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NLog" Version="5.2.6" />
<PackageReference Include="NLog" Version="5.2.7" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
Expand Down

0 comments on commit 0649592

Please sign in to comment.