C# Class CloudProviders.CloudLogger

This static class provides the Application Insights Logger to this Library
ファイルを表示 Open project: ross-p-smith/Mercury

Public Methods

Method Description
Log ( LogLevel logLevel, string message ) : void

Provides thread safe access to the logger object

SetLogger ( ILogger logger ) : void

The App Insights Logger wrapping field

Method Details

Log() public static method

Provides thread safe access to the logger object
public static Log ( LogLevel logLevel, string message ) : void
logLevel LogLevel The level to log the message at
message string The message to log
return void

SetLogger() public static method

The App Insights Logger wrapping field
public static SetLogger ( ILogger logger ) : void
logger ILogger The logger to be provided to the singleton
return void