Class NullLogger
Logger which doesn't log any information anywhere.
Inheritance
Implements
Inherited Members
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
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
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
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
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
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
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
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
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
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
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 |