Interface ILogger (1.59.0)

public interface ILogger

Describes a logging interface which is used for outputting messages.

Namespace

Google.Apis.Logging

Assembly

Google.Apis.Core.dll

Properties

IsDebugEnabled

bool IsDebugEnabled { get; }

Gets an indication whether debug output is logged or not.

Property Value
TypeDescription
Boolean

Methods

Debug(String, Object[])

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

Logs a debug message.

Parameters
NameDescription
messageString

The message to log.

formatArgsObject[]

String.Format arguments (if applicable).

Error(Exception, String, Object[])

void Error(Exception exception, string message, params object[] formatArgs)

Logs an error message resulting from an exception.

Parameters
NameDescription
exceptionException
messageString

The message to log.

formatArgsObject[]

String.Format arguments (if applicable).

Error(String, Object[])

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

Logs an error message.

Parameters
NameDescription
messageString

The message to log.

formatArgsObject[]

String.Format arguments (if applicable).

ForType(Type)

ILogger ForType(Type type)

Returns a logger which will be associated with the specified type.

Parameter
NameDescription
typeType

Type to which this logger belongs.

Returns
TypeDescription
ILogger

A type-associated logger.

ForType<T>()

ILogger ForType<T>()

Returns a logger which will be associated with the specified type.

Returns
TypeDescription
ILogger

A type-associated logger.

Type Parameter
NameDescription
T

Info(String, Object[])

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

Logs an info message.

Parameters
NameDescription
messageString

The message to log.

formatArgsObject[]

String.Format arguments (if applicable).

Warning(String, Object[])

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

Logs a warning.

Parameters
NameDescription
messageString

The message to log.

formatArgsObject[]

String.Format arguments (if applicable).

Extension Method