Class AnnouncerFluentMigratorLogger
A ILogger implementation that redirects all messages to a IAnnouncer
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Logging
Assembly: FluentMigrator.Runner.Core.dll
Syntax
[Obsolete]
public class AnnouncerFluentMigratorLogger : FluentMigratorLogger, ILogger
Constructors
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
WriteElapsedTime(TimeSpan)
Writes the elapsed time
Declaration
protected override void WriteElapsedTime(TimeSpan timeSpan)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeSpan | The elapsed time |
Overrides
WriteEmphasize(string)
Writes an emphasized text
Declaration
protected override void WriteEmphasize(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to write |
Overrides
WriteEmptySql()
Called when an attempt was made to write an empty SQL statement
Declaration
protected override void WriteEmptySql()
Overrides
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
WriteError(string)
Writes an error message
Declaration
protected override void WriteError(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message |
Overrides
WriteHeading(string)
Writes a heading
Declaration
protected override void WriteHeading(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The heading message |
Overrides
WriteSay(string)
Writes a message
Declaration
protected override void WriteSay(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message |
Overrides
WriteSql(string)
Writes an SQL statement
Declaration
protected override void WriteSql(string sql)
Parameters
Type | Name | Description |
---|---|---|
string | sql | The SQL statement |