C# Class LogSpy.Core.Infrastructure.Log

Represents a log static gateway
显示文件 Open project: jenrom/LogSpy

Public Methods

Method Description
AsDebug ( object message ) : void

Logs a message as a debug message

AsInfo ( object message ) : void

Logs a message as an info message

AsWarning ( object message ) : void

Logs a message as a warning message

Error ( object message ) : void

Logs a message as an error message

If the message is an object of type exeception the stacktrace of this exeception will be also logged

Reset ( ) : void

Resets the log gateway to the default logger The default logger is a TraceLogger

Use ( ILoggerFacade loggerFacade ) : void

Sets the logger that will be used internaly by the log gateway

Method Details

AsDebug() public static method

Logs a message as a debug message
public static AsDebug ( object message ) : void
message object The message that will be loged
return void

AsInfo() public static method

Logs a message as an info message
public static AsInfo ( object message ) : void
message object The message that will be loged
return void

AsWarning() public static method

Logs a message as a warning message
public static AsWarning ( object message ) : void
message object The message that will be loged
return void

Error() public static method

Logs a message as an error message
If the message is an object of type exeception the stacktrace of this exeception will be also logged
public static Error ( object message ) : void
message object The message that will be loged
return void

Reset() public static method

Resets the log gateway to the default logger The default logger is a TraceLogger
public static Reset ( ) : void
return void

Use() public static method

Sets the logger that will be used internaly by the log gateway
public static Use ( ILoggerFacade loggerFacade ) : void
loggerFacade ILoggerFacade
return void