Show / Hide Table of Contents

    Class NullLogger

    Logger which doesn't log any information anywhere.

    Inheritance
    System.Object
    NullLogger
    Implements
    ILogger
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Grpc.Core.Logging
    Assembly: Grpc.Core.dll
    Syntax
    public sealed class NullLogger : ILogger

    Methods

    Debug(String)

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Debug(string message)
    Parameters
    Type Name Description
    System.String message

    Debug(String, Object[])

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Debug(string format, params object[] formatArgs)
    Parameters
    Type Name Description
    System.String format
    System.Object[] formatArgs

    Error(Exception, String)

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Error(Exception exception, string message)
    Parameters
    Type Name Description
    System.Exception exception
    System.String message

    Error(String)

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Error(string message)
    Parameters
    Type Name Description
    System.String message

    Error(String, Object[])

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Error(string format, params object[] formatArgs)
    Parameters
    Type Name Description
    System.String format
    System.Object[] formatArgs

    ForType<T>()

    Returns a reference to the instance on which the method is called, as instances aren't associated with specific types.

    Declaration
    public ILogger ForType<T>()
    Returns
    Type Description
    ILogger
    Type Parameters
    Name Description
    T

    Info(String)

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Info(string message)
    Parameters
    Type Name Description
    System.String message

    Info(String, Object[])

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Info(string format, params object[] formatArgs)
    Parameters
    Type Name Description
    System.String format
    System.Object[] formatArgs

    Warning(Exception, String)

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Warning(Exception exception, string message)
    Parameters
    Type Name Description
    System.Exception exception
    System.String message

    Warning(String)

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Warning(string message)
    Parameters
    Type Name Description
    System.String message

    Warning(String, Object[])

    As with all logging calls on this logger, this method is a no-op.

    Declaration
    public void Warning(string format, params object[] formatArgs)
    Parameters
    Type Name Description
    System.String format
    System.Object[] formatArgs

    Implements

    ILogger
    Back to top Generated by DocFX