Interface ILogger

public interface ILogger

For logging messages.

Namespace

Grpc.Core.Logging

Assembly

Grpc.Core.dll

Methods

Debug(String)

void Debug(string message)

Logs a message with severity Debug.

Parameter
TypeNameDescription
Stringmessage

Debug(String, Object[])

void Debug(string format, params object[] formatArgs)

Logs a formatted message with severity Debug.

Parameters
TypeNameDescription
Stringformat
Object[]formatArgs

Error(Exception, String)

void Error(Exception exception, string message)

Logs a message and an associated exception with severity Error.

Parameters
TypeNameDescription
Exceptionexception
Stringmessage

Error(String)

void Error(string message)

Logs a message with severity Error.

Parameter
TypeNameDescription
Stringmessage

Error(String, Object[])

void Error(string format, params object[] formatArgs)

Logs a formatted message with severity Error.

Parameters
TypeNameDescription
Stringformat
Object[]formatArgs

ForType<T>()

ILogger ForType<T>()

Returns a logger associated with the specified type.

Returns
TypeDescription
ILogger
Type Parameter
NameDescription
T

Info(String)

void Info(string message)

Logs a message with severity Info.

Parameter
TypeNameDescription
Stringmessage

Info(String, Object[])

void Info(string format, params object[] formatArgs)

Logs a formatted message with severity Info.

Parameters
TypeNameDescription
Stringformat
Object[]formatArgs

Warning(Exception, String)

void Warning(Exception exception, string message)

Logs a message and an associated exception with severity Warning.

Parameters
TypeNameDescription
Exceptionexception
Stringmessage

Warning(String)

void Warning(string message)

Logs a message with severity Warning.

Parameter
TypeNameDescription
Stringmessage

Warning(String, Object[])

void Warning(string format, params object[] formatArgs)

Logs a formatted message with severity Warning.

Parameters
TypeNameDescription
Stringformat
Object[]formatArgs