Class FluentMigratorConsoleLogger
The default fluent migrator console logger
Implements
Inherited Members
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
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 |