Class SqlScriptFluentMigratorLoggerProvider
The base class for writing SQL scripts produced by the IMigrationGenerator implementations
Inherited Members
Namespace: FluentMigrator.Runner.Logging
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class SqlScriptFluentMigratorLoggerProvider : ILoggerProvider, IDisposable
  Constructors
| Edit this page View SourceSqlScriptFluentMigratorLoggerProvider(TextWriter, SqlScriptFluentMigratorLoggerOptions, bool)
Initializes a new instance of the SqlScriptFluentMigratorLoggerProvider class.
Declaration
public SqlScriptFluentMigratorLoggerProvider(TextWriter output, SqlScriptFluentMigratorLoggerOptions options = null, bool disposeWriter = true)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TextWriter | output | The writer to write the SQL script to  | 
      
| SqlScriptFluentMigratorLoggerOptions | options | The log file logger options  | 
      
| bool | disposeWriter | A value indicating whether the   | 
      
Methods
| Edit this page View SourceCreateLogger(string)
Creates a new ILogger instance.
Declaration
public ILogger CreateLogger(string categoryName)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | categoryName | The category name for messages produced by the logger.  | 
      
Returns
| Type | Description | 
|---|---|
| ILogger | 
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()