Interface ILogger
For logging messages.
Namespace: Grpc.Core.Logging
Assembly: Grpc.Core.dll
Syntax
public interface ILogger
Methods
Debug(String)
Logs a message with severity Debug.
Declaration
void Debug(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
Debug(String, Object[])
Logs a formatted message with severity Debug.
Declaration
void Debug(string format, params object[] formatArgs)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.Object[] | formatArgs |
Error(Exception, String)
Logs a message and an associated exception with severity Error.
Declaration
void Error(Exception exception, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | |
System.String | message |
Error(String)
Logs a message with severity Error.
Declaration
void Error(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
Error(String, Object[])
Logs a formatted message with severity Error.
Declaration
void Error(string format, params object[] formatArgs)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.Object[] | formatArgs |
ForType<T>()
Returns a logger associated with the specified type.
Declaration
ILogger ForType<T>()
Returns
Type | Description |
---|---|
ILogger |
Type Parameters
Name | Description |
---|---|
T |
Info(String)
Logs a message with severity Info.
Declaration
void Info(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
Info(String, Object[])
Logs a formatted message with severity Info.
Declaration
void Info(string format, params object[] formatArgs)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.Object[] | formatArgs |
Warning(Exception, String)
Logs a message and an associated exception with severity Warning.
Declaration
void Warning(Exception exception, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | |
System.String | message |
Warning(String)
Logs a message with severity Warning.
Declaration
void Warning(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
Warning(String, Object[])
Logs a formatted message with severity Warning.
Declaration
void Warning(string format, params object[] formatArgs)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | |
System.Object[] | formatArgs |