C# Class NServiceBus.Testing.TestingLoggerFactory

Logger factory which allows to log to a text writer.
Inheritance: LoggingFactoryDefinition
Show file Open project: Particular/NServiceBus

Public Methods

Method Description
Level ( LogLevel level ) : void

Controls the Logging.LogLevel.

TestingLoggerFactory ( ) : System

Creates a new instance of a testing logger factory.

WriteTo ( TextWriter writer ) : void

Instructs the logger to write to the provided text writer.

Protected Methods

Method Description
GetLoggingFactory ( ) : ILoggerFactory

Constructs an instance of ILoggerFactory for use by LogManager.Use{T}.

Method Details

GetLoggingFactory() protected method

Constructs an instance of ILoggerFactory for use by LogManager.Use{T}.
protected GetLoggingFactory ( ) : ILoggerFactory
return ILoggerFactory

Level() public method

Controls the Logging.LogLevel.
public Level ( LogLevel level ) : void
level LogLevel
return void

TestingLoggerFactory() public method

Creates a new instance of a testing logger factory.
public TestingLoggerFactory ( ) : System
return System

WriteTo() public method

Instructs the logger to write to the provided text writer.
public WriteTo ( TextWriter writer ) : void
writer System.IO.TextWriter The text writer to be used.
return void