Skip to content

Commit 088e235

Browse files
authored
Merge pull request #13 from sungam3r/cleanup
code cleanup
2 parents ae084a1 + 196d05d commit 088e235

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

serilog-enrichers-thread.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{E9D1B5
99
ProjectSection(SolutionItems) = preProject
1010
Build.ps1 = Build.ps1
1111
global.json = global.json
12-
NuGet.Config = NuGet.Config
1312
README.md = README.md
1413
assets\Serilog.snk = assets\Serilog.snk
1514
EndProjectSection

src/Serilog.Enrichers.Thread/Enrichers/ThreadIdEnricher.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
using System.Threading;
1615
using Serilog.Core;
1716
using Serilog.Events;
1817
using System;

src/Serilog.Enrichers.Thread/Enrichers/ThreadNameEnricher.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919

2020
namespace Serilog.Enrichers
2121
{
22-
2322
/// <summary>
24-
/// Enriches log events with a ThreadName property containing the
23+
/// Enriches log events with a ThreadName property containing the <see cref="Thread.CurrentThread"/> <see cref="Thread.Name"/>.
2524
/// </summary>
2625
public class ThreadNameEnricher : ILogEventEnricher
2726
{

src/Serilog.Enrichers.Thread/ThreadLoggerConfigurationExtensions.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace Serilog
2222
{
2323
/// <summary>
24-
/// Extends <see cref="LoggerConfiguration"/> to add enrichers for <see cref="Environment.CurrentManagedThreadId"/>.
24+
/// Extends <see cref="LoggerConfiguration"/> to add enrichers for <see cref="Environment.CurrentManagedThreadId"/>
2525
/// capabilities.
2626
/// </summary>
2727
public static class ThreadLoggerConfigurationExtensions
@@ -31,7 +31,7 @@ public static class ThreadLoggerConfigurationExtensions
3131
/// </summary>
3232
/// <param name="enrichmentConfiguration">Logger enrichment configuration.</param>
3333
/// <returns>Configuration object allowing method chaining.</returns>
34-
/// <exception cref="ArgumentNullException"></exception>
34+
/// <exception cref="ArgumentNullException">If <paramref name="enrichmentConfiguration"/> is null.</exception>
3535
public static LoggerConfiguration WithThreadId(
3636
this LoggerEnrichmentConfiguration enrichmentConfiguration)
3737
{
@@ -43,8 +43,9 @@ public static LoggerConfiguration WithThreadId(
4343
/// <summary>
4444
/// Enrich log events with a ThreadName property containing the <see cref="Thread.CurrentThread"/> <see cref="Thread.Name"/>.
4545
/// </summary>
46-
/// <param name="enrichmentConfiguration"></param>
47-
/// <returns></returns>
46+
/// <param name="enrichmentConfiguration">Logger enrichment configuration.</param>
47+
/// <returns>Configuration object allowing method chaining.</returns>
48+
/// <exception cref="ArgumentNullException">If <paramref name="enrichmentConfiguration"/> is null.</exception>
4849
public static LoggerConfiguration WithThreadName(
4950
this LoggerEnrichmentConfiguration enrichmentConfiguration)
5051
{

0 commit comments

Comments
 (0)