public sealed class NullLogger : object, ILogger
Logger which doesn't log any information anywhere.
Implements
ILoggerNamespace
Grpc.Core.LoggingAssembly
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.
Type | Name | Description |
---|---|---|
String | message |
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.
Type | Name | Description |
---|---|---|
String | format | |
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.
Type | Name | Description |
---|---|---|
Exception | exception | |
String | message |
Error(String)
public void Error(string message)
As with all logging calls on this logger, this method is a no-op.
Type | Name | Description |
---|---|---|
String | message |
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.
Type | Name | Description |
---|---|---|
String | format | |
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.
Type | Description |
---|---|
ILogger |
Name | Description |
---|---|
T |
Info(String)
public void Info(string message)
As with all logging calls on this logger, this method is a no-op.
Type | Name | Description |
---|---|---|
String | message |
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.
Type | Name | Description |
---|---|---|
String | format | |
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.
Type | Name | Description |
---|---|---|
Exception | exception | |
String | message |
Warning(String)
public void Warning(string message)
As with all logging calls on this logger, this method is a no-op.
Type | Name | Description |
---|---|---|
String | message |
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.
Type | Name | Description |
---|---|---|
String | format | |
Object[] | formatArgs |