C# Class PayPal.Log.BaseLogger

Abstract base for the loggers
显示文件 Open project: paypal/PayPal-NET-SDK

Public Methods

Method Description
BaseLogger ( Type typeGiven ) : System

Initializes a new instance of this logger and associates it with the specified object type.

Debug ( string message ) : void

Records a debug message to the log.

Debug ( string message, System exception ) : void

Records a debug message, including any exception details, to the log.

DebugFormat ( string format ) : void

Records a formatted debug message to the log.

Error ( string message ) : void

Records an error message to the log.

Error ( string message, System exception ) : void

Records an error message, including any exception details, to the log.

ErrorFormat ( string format ) : void

Records a formatted error message to the log.

Flush ( ) : void

Flushes any resources or streams used by this logger.

Info ( string message ) : void

Records an informational message to the log.

Info ( string message, System exception ) : void

Records an informational message, including any exception details, to the log.

InfoFormat ( string format ) : void

Records a formatted informational message to the log.

Warn ( string message ) : void

Records a warning message to the log.

Warn ( string message, System exception ) : void

Records a warning message, including any exception details, to the log.

WarnFormat ( string format ) : void

Records a formatted warning message to the log.

Method Details

BaseLogger() public method

Initializes a new instance of this logger and associates it with the specified object type.
public BaseLogger ( Type typeGiven ) : System
typeGiven System.Type The type to associate with this logger.
return System

Debug() public abstract method

Records a debug message to the log.
public abstract Debug ( string message ) : void
message string The message to be logged.
return void

Debug() public abstract method

Records a debug message, including any exception details, to the log.
public abstract Debug ( string message, System exception ) : void
message string The message to be logged.
exception System Exception details to be logged.
return void

DebugFormat() public abstract method

Records a formatted debug message to the log.
public abstract DebugFormat ( string format ) : void
format string A composite format string to be logged.
return void

Error() public abstract method

Records an error message to the log.
public abstract Error ( string message ) : void
message string The message to be logged.
return void

Error() public abstract method

Records an error message, including any exception details, to the log.
public abstract Error ( string message, System exception ) : void
message string The message to be logged.
exception System Exception details to be logged.
return void

ErrorFormat() public abstract method

Records a formatted error message to the log.
public abstract ErrorFormat ( string format ) : void
format string A composite format string to be logged.
return void

Flush() public method

Flushes any resources or streams used by this logger.
public Flush ( ) : void
return void

Info() public abstract method

Records an informational message to the log.
public abstract Info ( string message ) : void
message string The message to be logged.
return void

Info() public abstract method

Records an informational message, including any exception details, to the log.
public abstract Info ( string message, System exception ) : void
message string The message to be logged.
exception System Exception details to be logged.
return void

InfoFormat() public abstract method

Records a formatted informational message to the log.
public abstract InfoFormat ( string format ) : void
format string A composite format string to be logged.
return void

Warn() public abstract method

Records a warning message to the log.
public abstract Warn ( string message ) : void
message string The message to be logged.
return void

Warn() public abstract method

Records a warning message, including any exception details, to the log.
public abstract Warn ( string message, System exception ) : void
message string The message to be logged.
exception System Exception details to be logged.
return void

WarnFormat() public abstract method

Records a formatted warning message to the log.
public abstract WarnFormat ( string format ) : void
format string A composite format string to be logged.
return void