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 : ILoggerMethods
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 |