C# Class Baza.Infrastructure.Logging.EnterpriseLibrary.EnterpriseLibraryLogger

Inheritance: ILogger, IDisposable
Show file Open project: Hirede/Logging Class Usage Examples

Public Methods

Method Description
BeginScopeImpl ( object state ) : IDisposable
Dispose ( ) : void
EnterpriseLibraryLogger ( Microsoft.Practices.EnterpriseLibrary.Logging.LoggingConfiguration config ) : System
IsEnabled ( LogLevel logLevel ) : bool
Log ( LogLevel logLevel, int eventId, object state, Exception exception, Func formatter ) : void

Private Methods

Method Description
ToTraceEventType ( LogLevel level ) : TraceEventType

Method Details

BeginScopeImpl() public method

public BeginScopeImpl ( object state ) : IDisposable
state object
return IDisposable

Dispose() public method

public Dispose ( ) : void
return void

EnterpriseLibraryLogger() public method

public EnterpriseLibraryLogger ( Microsoft.Practices.EnterpriseLibrary.Logging.LoggingConfiguration config ) : System
config Microsoft.Practices.EnterpriseLibrary.Logging.LoggingConfiguration
return System

IsEnabled() public method

public IsEnabled ( LogLevel logLevel ) : bool
logLevel LogLevel
return bool

Log() public method

public Log ( LogLevel logLevel, int eventId, object state, Exception exception, Func formatter ) : void
logLevel LogLevel
eventId int
state object
exception System.Exception
formatter Func
return void