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