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.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
Implements
ILogger.Debug(String)

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
Implements
ILogger.Debug(String, Object[])

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
Implements
ILogger.Error(Exception, String)

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
Implements
ILogger.Error(String)

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
Implements
ILogger.Error(String, Object[])

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
Implements
ILogger.ForType<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
Implements
ILogger.Info(String)

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
Implements
ILogger.Info(String, Object[])

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
Implements
ILogger.Warning(Exception, String)

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
Implements
ILogger.Warning(String)

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.Warning(String, Object[])
Back to top