Search Results for

    Show / Hide Table of Contents

    Class AnnouncerFluentMigratorLogger

    A ILogger implementation that redirects all messages to a IAnnouncer

    Inheritance
    object
    FluentMigratorLogger
    AnnouncerFluentMigratorLogger
    Implements
    ILogger
    Inherited Members
    FluentMigratorLogger.Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, string>)
    FluentMigratorLogger.IsEnabled(LogLevel)
    FluentMigratorLogger.BeginScope<TState>(TState)
    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
    [Obsolete]
    public class AnnouncerFluentMigratorLogger : FluentMigratorLogger, ILogger

    Constructors

    | Edit this page View Source

    AnnouncerFluentMigratorLogger(IAnnouncer)

    Initializes a new instance of the AnnouncerFluentMigratorLogger class.

    Declaration
    public AnnouncerFluentMigratorLogger(IAnnouncer announcer)
    Parameters
    Type Name Description
    IAnnouncer announcer

    The announcer to send all messages to

    Methods

    | Edit this page View Source

    WriteElapsedTime(TimeSpan)

    Writes the elapsed time

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

    The elapsed time

    Overrides
    FluentMigratorLogger.WriteElapsedTime(TimeSpan)
    | Edit this page View Source

    WriteEmphasize(string)

    Writes an emphasized text

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

    The message to write

    Overrides
    FluentMigratorLogger.WriteEmphasize(string)
    | Edit this page View Source

    WriteEmptySql()

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

    Declaration
    protected override void WriteEmptySql()
    Overrides
    FluentMigratorLogger.WriteEmptySql()
    | Edit this page View Source

    WriteError(Exception)

    Writes an exception message

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

    The exception containing the message

    Overrides
    FluentMigratorLogger.WriteError(Exception)
    | Edit this page View Source

    WriteError(string)

    Writes an error message

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

    The error message

    Overrides
    FluentMigratorLogger.WriteError(string)
    | Edit this page View Source

    WriteHeading(string)

    Writes a heading

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

    The heading message

    Overrides
    FluentMigratorLogger.WriteHeading(string)
    | Edit this page View Source

    WriteSay(string)

    Writes a message

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

    The message

    Overrides
    FluentMigratorLogger.WriteSay(string)
    | Edit this page View Source

    WriteSql(string)

    Writes an SQL statement

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

    The SQL statement

    Overrides
    FluentMigratorLogger.WriteSql(string)

    Implements

    ILogger

    Extension Methods

    LoggingUtilities.LogElapsedTime(ILogger, TimeSpan)
    LoggingUtilities.LogEmphasized(ILogger, string)
    LoggingUtilities.LogHeader(ILogger, string)
    LoggingUtilities.LogSay(ILogger, string)
    LoggingUtilities.LogSql(ILogger, string)
    • Edit this page
    • 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.