Class NullLogger

public sealed class NullLogger : object, ILogger

Logger which doesn't log any information anywhere.

Inheritance

Object > NullLogger

Implements

ILogger

Namespace

Grpc.Core.Logging

Assembly

Grpc.Core.dll

Methods

Debug(String)

public void Debug(string message)

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

Parameter
TypeNameDescription
Stringmessage

Debug(String, Object[])

public void Debug(string format, params object[] formatArgs)

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

Parameters
TypeNameDescription
Stringformat
Object[]formatArgs

Error(Exception, String)

public void Error(Exception exception, string message)

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

Parameters
TypeNameDescription
Exceptionexception
Stringmessage

Error(String)

public void Error(string message)

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

Parameter
TypeNameDescription
Stringmessage

Error(String, Object[])

public void Error(string format, params object[] formatArgs)

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

Parameters
TypeNameDescription
Stringformat
Object[]formatArgs

ForType<T>()

public ILogger ForType<T>()

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

Returns
TypeDescription
ILogger
Type Parameter
NameDescription
T

Info(String)

public void Info(string message)

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

Parameter
TypeNameDescription
Stringmessage

Info(String, Object[])

public void Info(string format, params object[] formatArgs)

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

Parameters
TypeNameDescription
Stringformat
Object[]formatArgs

Warning(Exception, String)

public void Warning(Exception exception, string message)

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

Parameters
TypeNameDescription
Exceptionexception
Stringmessage

Warning(String)

public void Warning(string message)

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

Parameter
TypeNameDescription
Stringmessage

Warning(String, Object[])

public void Warning(string format, params object[] formatArgs)

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

Parameters
TypeNameDescription
Stringformat
Object[]formatArgs

Implements