public interface ILogger
Describes a logging interface which is used for outputting messages.
Namespace
GoogleApisLoggingAssembly
Google.Apis.Core.dll
Properties
IsDebugEnabled
bool IsDebugEnabled { get; }
Gets an indication whether debug output is logged or not.
Property Value | |
---|---|
Type | Description |
bool |
Methods
Debug(string, params object[])
void Debug(string message, params object[] formatArgs)
Logs a debug message.
Parameters | |
---|---|
Name | Description |
message |
string The message to log. |
formatArgs |
object String.Format arguments (if applicable). |
Error(Exception, string, params object[])
void Error(Exception exception, string message, params object[] formatArgs)
Logs an error message resulting from an exception.
Parameters | |
---|---|
Name | Description |
exception |
Exception |
message |
string The message to log. |
formatArgs |
object String.Format arguments (if applicable). |
Error(string, params object[])
void Error(string message, params object[] formatArgs)
Logs an error message.
Parameters | |
---|---|
Name | Description |
message |
string The message to log. |
formatArgs |
object String.Format arguments (if applicable). |
ForType(Type)
ILogger ForType(Type type)
Returns a logger which will be associated with the specified type.
Parameter | |
---|---|
Name | Description |
type |
Type Type to which this logger belongs. |
Returns | |
---|---|
Type | Description |
ILogger |
A type-associated logger. |
ForType<T>()
ILogger ForType<T>()
Returns a logger which will be associated with the specified type.
Returns | |
---|---|
Type | Description |
ILogger |
A type-associated logger. |
Type Parameter | |
---|---|
Name | Description |
T |
Info(string, params object[])
void Info(string message, params object[] formatArgs)
Logs an info message.
Parameters | |
---|---|
Name | Description |
message |
string The message to log. |
formatArgs |
object String.Format arguments (if applicable). |
Warning(string, params object[])
void Warning(string message, params object[] formatArgs)
Logs a warning.
Parameters | |
---|---|
Name | Description |
message |
string The message to log. |
formatArgs |
object String.Format arguments (if applicable). |