Search Results for

    Show / Hide Table of Contents

    Class LoggerAnnouncer

    Implementation of IAnnouncer that redirects all log messages to an ILogger

    Inheritance
    object
    LoggerAnnouncer
    Implements
    IAnnouncer
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.Announcers
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    [Obsolete]
    public class LoggerAnnouncer : IAnnouncer

    Constructors

    | Edit this page View Source

    LoggerAnnouncer(ILogger, AnnouncerOptions)

    Initializes a new instance of the LoggerAnnouncer class.

    Declaration
    public LoggerAnnouncer(ILogger logger, AnnouncerOptions options)
    Parameters
    Type Name Description
    ILogger logger
    AnnouncerOptions options

    The announcer options

    | Edit this page View Source

    LoggerAnnouncer(ILoggerFactory, IOptions<AnnouncerOptions>)

    Initializes a new instance of the LoggerAnnouncer class.

    Declaration
    public LoggerAnnouncer(ILoggerFactory loggerFactory, IOptions<AnnouncerOptions> options)
    Parameters
    Type Name Description
    ILoggerFactory loggerFactory

    The logger factory to create the logger from

    IOptions<AnnouncerOptions> options

    The announcer options

    Methods

    | Edit this page View Source

    ElapsedTime(TimeSpan)

    Declaration
    public void ElapsedTime(TimeSpan timeSpan)
    Parameters
    Type Name Description
    TimeSpan timeSpan
    | Edit this page View Source

    Emphasize(string)

    Declaration
    public void Emphasize(string message)
    Parameters
    Type Name Description
    string message
    | Edit this page View Source

    Error(Exception)

    Declaration
    public void Error(Exception exception)
    Parameters
    Type Name Description
    Exception exception
    | Edit this page View Source

    Error(string)

    Declaration
    public void Error(string message)
    Parameters
    Type Name Description
    string message
    | Edit this page View Source

    Heading(string)

    Declaration
    public void Heading(string message)
    Parameters
    Type Name Description
    string message
    | Edit this page View Source

    Say(string)

    Declaration
    public void Say(string message)
    Parameters
    Type Name Description
    string message
    | Edit this page View Source

    Sql(string)

    Declaration
    public void Sql(string sql)
    Parameters
    Type Name Description
    string sql
    | Edit this page View Source

    Write(string, bool)

    Declaration
    public void Write(string message, bool isNotSql = true)
    Parameters
    Type Name Description
    string message
    bool isNotSql

    Implements

    IAnnouncer

    Extension Methods

    AnnouncerExtensions.Error(IAnnouncer, string, params object[])
    AnnouncerExtensions.Heading(IAnnouncer, string, params object[])
    AnnouncerExtensions.Say(IAnnouncer, string, params object[])
    • 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.