Search Results for

    Show / Hide Table of Contents

    Class FluentMigratorConsoleLogger

    The default fluent migrator console logger

    Inheritance
    object
    FluentMigratorLogger
    FluentMigratorRunnerLogger
    FluentMigratorConsoleLogger
    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.dll
    Syntax
    public class FluentMigratorConsoleLogger : FluentMigratorRunnerLogger, ILogger

    Constructors

    | Edit this page View Source

    FluentMigratorConsoleLogger(FluentMigratorLoggerOptions)

    Initializes a new instance of the FluentMigratorConsoleLogger class.

    Declaration
    public FluentMigratorConsoleLogger(FluentMigratorLoggerOptions options)
    Parameters
    Type Name Description
    FluentMigratorLoggerOptions options

    The logger options

    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
    FluentMigratorRunnerLogger.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
    FluentMigratorRunnerLogger.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
    FluentMigratorRunnerLogger.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
    FluentMigratorRunnerLogger.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
    FluentMigratorRunnerLogger.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
    FluentMigratorRunnerLogger.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
    FluentMigratorRunnerLogger.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
    FluentMigratorRunnerLogger.WriteSql(string)

    Implements

    ILogger
    • 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.