C# Class AzureWebFarm.Helpers.AzureDiagnosticsLogger

Redirects all Trace messages to the "Default" TraceSource so that the standard Azure Diagnostics Listener picks up the messages.
Inheritance: Castle.Core.Logging.LevelFilteredLogger
Mostra file Open project: MRCollective/AzureWebFarm

Public Methods

Method Description
AzureDiagnosticsLogger ( string name ) : System
AzureDiagnosticsLogger ( string name, LoggerLevel level ) : System
CreateChildLogger ( string loggerName ) : ILogger

Protected Methods

Method Description
Log ( LoggerLevel loggerLevel, string loggerName, string message, Exception exception ) : void

Method Details

AzureDiagnosticsLogger() public method

public AzureDiagnosticsLogger ( string name ) : System
name string
return System

AzureDiagnosticsLogger() public method

public AzureDiagnosticsLogger ( string name, LoggerLevel level ) : System
name string
level LoggerLevel
return System

CreateChildLogger() public method

public CreateChildLogger ( string loggerName ) : ILogger
loggerName string
return ILogger

Log() protected method

protected Log ( LoggerLevel loggerLevel, string loggerName, string message, Exception exception ) : void
loggerLevel LoggerLevel
loggerName string
message string
exception System.Exception
return void