Search Results for

    Show / Hide Table of Contents

    Class FluentMigratorLogger

    The base class for FluentMigrator-style implementations

    Inheritance
    Object
    FluentMigratorLogger
    AnnouncerFluentMigratorLogger
    FluentMigratorRunnerLogger
    Namespace: FluentMigrator.Runner.Logging
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public abstract class FluentMigratorLogger : ILogger

    Constructors

    | Improve this Doc View Source

    FluentMigratorLogger(FluentMigratorLoggerOptions)

    Initializes a new instance of the FluentMigratorLogger class.

    Declaration
    protected FluentMigratorLogger(FluentMigratorLoggerOptions options)
    Parameters
    Type Name Description
    FluentMigratorLoggerOptions options

    The logger options

    Methods

    | Improve this Doc View Source

    BeginScope<TState>(TState)

    Declaration
    public IDisposable BeginScope<TState>(TState state)
    Parameters
    Type Name Description
    TState state
    Returns
    Type Description
    IDisposable
    Type Parameters
    Name Description
    TState
    | Improve this Doc View Source

    IsEnabled(LogLevel)

    Declaration
    public bool IsEnabled(LogLevel logLevel)
    Parameters
    Type Name Description
    LogLevel logLevel
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)

    Declaration
    public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
    Parameters
    Type Name Description
    LogLevel logLevel
    EventId eventId
    TState state
    Exception exception
    Func<TState, Exception, String> formatter
    Type Parameters
    Name Description
    TState
    | Improve this Doc View Source

    WriteElapsedTime(TimeSpan)

    Writes the elapsed time

    Declaration
    protected abstract void WriteElapsedTime(TimeSpan timeSpan)
    Parameters
    Type Name Description
    TimeSpan timeSpan

    The elapsed time

    | Improve this Doc View Source

    WriteEmphasize(String)

    Writes an emphasized text

    Declaration
    protected abstract void WriteEmphasize(string message)
    Parameters
    Type Name Description
    String message

    The message to write

    | Improve this Doc View Source

    WriteEmptySql()

    Called when an attempt was made to write an empty SQL statement

    Declaration
    protected abstract void WriteEmptySql()
    | Improve this Doc View Source

    WriteError(Exception)

    Writes an exception message

    Declaration
    protected abstract void WriteError(Exception exception)
    Parameters
    Type Name Description
    Exception exception

    The exception containing the message

    | Improve this Doc View Source

    WriteError(String)

    Writes an error message

    Declaration
    protected abstract void WriteError(string message)
    Parameters
    Type Name Description
    String message

    The error message

    | Improve this Doc View Source

    WriteHeading(String)

    Writes a heading

    Declaration
    protected abstract void WriteHeading(string message)
    Parameters
    Type Name Description
    String message

    The heading message

    | Improve this Doc View Source

    WriteSay(String)

    Writes a message

    Declaration
    protected abstract void WriteSay(string message)
    Parameters
    Type Name Description
    String message

    The message

    | Improve this Doc View Source

    WriteSql(String)

    Writes an SQL statement

    Declaration
    protected abstract void WriteSql(string sql)
    Parameters
    Type Name Description
    String sql

    The SQL statement

    • Improve this Doc
    • View Source
    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.