Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
add nop code comments for nop logger
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Mar 17, 2016
1 parent 4a600c7 commit f81f481
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions source/Core/Logging/NoopLogProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,32 @@ namespace IdentityServer3.Core.Logging
/// </summary>
public class NoopLogProvider : ILogProvider
{
/// <summary>
/// Nop logger
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public Logger GetLogger(string name)
{
return delegate { return false; };
}

/// <summary>
/// Nop logger
/// </summary>
/// <param name="key"></param>
/// <param name="value"></param>
/// <returns></returns>
public IDisposable OpenMappedContext(string key, string value)
{
return new NoopClass();
}

/// <summary>
/// Nop logger
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public IDisposable OpenNestedContext(string message)
{
return new NoopClass();
Expand Down

0 comments on commit f81f481

Please sign in to comment.