Search Results for

    Show / Hide Table of Contents

    Class LoggingUtilities

    Utility functions around logging

    Inheritance
    object
    LoggingUtilities
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public static class LoggingUtilities

    Methods

    | Edit this page View Source

    LogElapsedTime(ILogger, TimeSpan)

    Log elapsed time

    Declaration
    public static void LogElapsedTime(this ILogger logger, TimeSpan timeSpan)
    Parameters
    Type Name Description
    ILogger logger

    The logger

    TimeSpan timeSpan

    The elapsed time

    | Edit this page View Source

    LogEmphasized(ILogger, string)

    Log emphasized message

    Declaration
    public static void LogEmphasized(this ILogger logger, string message)
    Parameters
    Type Name Description
    ILogger logger

    The logger

    string message

    The message

    | Edit this page View Source

    LogHeader(ILogger, string)

    Log header message

    Declaration
    public static void LogHeader(this ILogger logger, string message)
    Parameters
    Type Name Description
    ILogger logger

    The logger

    string message

    The message

    | Edit this page View Source

    LogSay(ILogger, string)

    Log an informational message

    Declaration
    public static void LogSay(this ILogger logger, string message)
    Parameters
    Type Name Description
    ILogger logger

    The logger

    string message

    The message

    | Edit this page View Source

    LogSql(ILogger, string)

    Log SQL code

    Declaration
    public static void LogSql(this ILogger logger, string sql)
    Parameters
    Type Name Description
    ILogger logger

    The logger

    string sql

    The SQL code

    | Edit this page View Source

    WriteException(TextWriter, Exception, int)

    Writes the exception (and all its inner exceptions) to the given writer

    Declaration
    public static void WriteException(this TextWriter writer, Exception exception, int level = 0)
    Parameters
    Type Name Description
    TextWriter writer

    The TextWriter to write the text to

    Exception exception

    The exception containing the message

    int level

    A value > 0 when this exception is an inner exception

    | Edit this page View Source

    WriteExceptionMessage(TextWriter, string, int)

    Writes the exception message to the given writer

    Declaration
    public static void WriteExceptionMessage(this TextWriter writer, string message, int level = 0)
    Parameters
    Type Name Description
    TextWriter writer

    The TextWriter to write the text to

    string message

    The exception message

    int level

    A value > 0 when this exception is an inner exception

    | Edit this page View Source

    WriteHeader(TextWriter)

    Writes the header to the given writer

    Declaration
    public static void WriteHeader(this TextWriter writer)
    Parameters
    Type Name Description
    TextWriter writer

    The TextWriter to write the text to

    | Edit this page View Source

    WriteHorizontalRuler(TextWriter)

    Writes a horizontal ruler to the given writer

    Declaration
    public static void WriteHorizontalRuler(this TextWriter writer)
    Parameters
    Type Name Description
    TextWriter writer

    The TextWriter to write the text to

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