Search Results for

    Show / Hide Table of Contents

    Class SqlScriptFluentMigratorLoggerProvider

    The base class for writing SQL scripts produced by the IMigrationGenerator implementations

    Inheritance
    object
    SqlScriptFluentMigratorLoggerProvider
    LogFileFluentMigratorLoggerProvider
    LogFileFluentMigratorLoggerProvider
    LogFileFluentMigratorLoggerProvider
    Implements
    ILoggerProvider
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.Logging
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public class SqlScriptFluentMigratorLoggerProvider : ILoggerProvider, IDisposable

    Constructors

    SqlScriptFluentMigratorLoggerProvider(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 output writer should be disposed by this logger provider

    Methods

    CreateLogger(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

    The instance of ILogger that was created.

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Implements

    ILoggerProvider
    IDisposable
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.