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

    Constructors

    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

    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)

    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)

    WriteEmptySql()

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

    Declaration
    protected override void WriteEmptySql()
    Overrides
    FluentMigratorRunnerLogger.WriteEmptySql()

    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)

    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)

    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)

    WriteSay(string)

    Writes a message

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

    The message

    Overrides
    FluentMigratorRunnerLogger.WriteSay(string)

    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

    Extension Methods

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