Google API Client Library for .NET  1.10.0
Public Member Functions | Properties | List of all members
Google.Apis.Logging.Log4NetLogger Class Reference

A logger implementation which makes use of the log4net library. More...

Inheritance diagram for Google.Apis.Logging.Log4NetLogger:
Google.Apis.Logging.ILogger

Public Member Functions

 Log4NetLogger ()
 Creates a new default log4net logger. More...
 
 Log4NetLogger (Type t)
 Creates a new log4net logger and associates it with the specified type. More...
 
ILogger ForType (Type type)
 Returns a logger which will be associated with the specified type. More...
 
ILogger ForType< T > ()
 Returns a logger which will be associated with the specified type. More...
 
void Info (string message, params object[] formatArgs)
 Logs an info message. More...
 
void Warning (string message, params object[] formatArgs)
 Logs a warning. More...
 
void Debug (string message, params object[] formatArgs)
 Logs a debug message. More...
 
void Error (Exception exception, string message, params object[] formatArgs)
 Logs an error message resulting from an exception. More...
 
void Error (string message, params object[] formatArgs)
 Logs an error message. More...
 

Properties

bool IsDebugEnabled [get]
 
- Properties inherited from Google.Apis.Logging.ILogger
bool IsDebugEnabled [get]
 Gets an indication whether debug output is logged or not. More...
 

Detailed Description

A logger implementation which makes use of the log4net library.

Constructor & Destructor Documentation

Google.Apis.Logging.Log4NetLogger.Log4NetLogger ( )
inline

Creates a new default log4net logger.

Google.Apis.Logging.Log4NetLogger.Log4NetLogger ( Type  t)
inline

Creates a new log4net logger and associates it with the specified type.

Member Function Documentation

void Google.Apis.Logging.Log4NetLogger.Debug ( string  message,
params object[]  formatArgs 
)
inline

Logs a debug message.

Parameters
messageThe message to log.
formatArgsString.Format arguments (if applicable).

Implements Google.Apis.Logging.ILogger.

void Google.Apis.Logging.Log4NetLogger.Error ( Exception  exception,
string  message,
params object[]  formatArgs 
)
inline

Logs an error message resulting from an exception.

Parameters
exception
messageThe message to log.
formatArgsString.Format arguments (if applicable).

Implements Google.Apis.Logging.ILogger.

void Google.Apis.Logging.Log4NetLogger.Error ( string  message,
params object[]  formatArgs 
)
inline

Logs an error message.

Parameters
messageThe message to log.
formatArgsString.Format arguments (if applicable).

Implements Google.Apis.Logging.ILogger.

ILogger Google.Apis.Logging.Log4NetLogger.ForType ( Type  type)
inline

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

Parameters
typeType to which this logger belongs.
Returns
A type-associated logger.

Implements Google.Apis.Logging.ILogger.

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

Returns
A type-associated logger.

Implements Google.Apis.Logging.ILogger.

void Google.Apis.Logging.Log4NetLogger.Info ( string  message,
params object[]  formatArgs 
)
inline

Logs an info message.

Parameters
messageThe message to log.
formatArgsString.Format arguments (if applicable).

Implements Google.Apis.Logging.ILogger.

void Google.Apis.Logging.Log4NetLogger.Warning ( string  message,
params object[]  formatArgs 
)
inline

Logs a warning.

Parameters
messageThe message to log.
formatArgsString.Format arguments (if applicable).

Implements Google.Apis.Logging.ILogger.


The documentation for this class was generated from the following file: