C# Class GSoft.Dynamite.Logging.TraceLogger

A logger that logs to SharePoint's ULS.
Inheritance: ILogger
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010 Class Usage Examples

Public Methods

Method Description
Debug ( object message ) : void

Output the message at the Debug level.

Debug ( string format ) : void

Output the formatted message at the Debug level.

Error ( object message ) : void

Output the message at the Error level.

Error ( string format ) : void

Output the formatted message at the Error level.

Fatal ( object message ) : void

Output the message at the Fatal level.

Fatal ( string format ) : void

Output the formatted message at the Fatal level.

Info ( object message ) : void

Output the message at the Info level.

Info ( string format ) : void

Output the formatted message at the Info level.

TraceLogger ( string name, string categoryName, bool isDebugEnabled ) : Microsoft.SharePoint.Administration

Initializes a new instance of the TraceLogger class.

Warn ( object message ) : void

Output the message at the Warn level.

Warn ( string format ) : void

Output the formatted message at the Warn level.

Protected Methods

Method Description
InnerLog ( TraceSeverity traceSeverity, string message ) : void

Logs to the ULS.

Method Details

Debug() public method

Output the message at the Debug level.
public Debug ( object message ) : void
message object The message to output.
return void

Debug() public method

Output the formatted message at the Debug level.
public Debug ( string format ) : void
format string The format to use.
return void

Error() public method

Output the message at the Error level.
public Error ( object message ) : void
message object The message to output.
return void

Error() public method

Output the formatted message at the Error level.
public Error ( string format ) : void
format string The format to use.
return void

Fatal() public method

Output the message at the Fatal level.
public Fatal ( object message ) : void
message object The message to output.
return void

Fatal() public method

Output the formatted message at the Fatal level.
public Fatal ( string format ) : void
format string The format to use.
return void

Info() public method

Output the message at the Info level.
public Info ( object message ) : void
message object The message to output.
return void

Info() public method

Output the formatted message at the Info level.
public Info ( string format ) : void
format string The format to use.
return void

InnerLog() protected method

Logs to the ULS.
protected InnerLog ( TraceSeverity traceSeverity, string message ) : void
traceSeverity TraceSeverity The trace severity.
message string The message.
return void

TraceLogger() public method

Initializes a new instance of the TraceLogger class.
public TraceLogger ( string name, string categoryName, bool isDebugEnabled ) : Microsoft.SharePoint.Administration
name string The name.
categoryName string Name of the category.
isDebugEnabled bool if set to true [is debug enabled].
return Microsoft.SharePoint.Administration

Warn() public method

Output the message at the Warn level.
public Warn ( object message ) : void
message object The message to output.
return void

Warn() public method

Output the formatted message at the Warn level.
public Warn ( string format ) : void
format string The format to use.
return void