Show / Hide Table of Contents

Class NullLogger

Represents a NullLogger which does not do any logging.

Inheritance
object
NullLogger
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Logging
Assembly: Google.Apis.Core.dll
Syntax
public class NullLogger

Properties

IsDebugEnabled

Gets an indication whether debug output is logged or not.

Declaration
public bool IsDebugEnabled { get; }
Property Value
Type Description
bool

Methods

Debug(string, params object[])

Logs a debug message.

Declaration
public void Debug(string message, params object[] formatArgs)
Parameters
Type Name Description
string message

The message to log.

object[] formatArgs

String.Format arguments (if applicable).

Error(Exception, string, params object[])

Logs an error message resulting from an exception.

Declaration
public void Error(Exception exception, string message, params object[] formatArgs)
Parameters
Type Name Description
Exception exception
string message

The message to log.

object[] formatArgs

String.Format arguments (if applicable).

Error(string, params object[])

Logs an error message.

Declaration
public void Error(string message, params object[] formatArgs)
Parameters
Type Name Description
string message

The message to log.

object[] formatArgs

String.Format arguments (if applicable).

ForType(Type)

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

Declaration
public ILogger ForType(Type type)
Parameters
Type Name Description
Type type

Type to which this logger belongs.

Returns
Type Description
ILogger

A type-associated logger.

ForType<T>()

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

Declaration
public ILogger ForType<T>()
Returns
Type Description
ILogger

A type-associated logger.

Type Parameters
Name Description
T

Info(string, params object[])

Logs an info message.

Declaration
public void Info(string message, params object[] formatArgs)
Parameters
Type Name Description
string message

The message to log.

object[] formatArgs

String.Format arguments (if applicable).

Warning(string, params object[])

Logs a warning.

Declaration
public void Warning(string message, params object[] formatArgs)
Parameters
Type Name Description
string message

The message to log.

object[] formatArgs

String.Format arguments (if applicable).

Extension Methods

Utilities.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX