Class FluentMigratorConsoleLogger
The default fluent migrator console logger
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Logging
Assembly: FluentMigrator.Runner.dll
Syntax
public class FluentMigratorConsoleLogger : FluentMigratorRunnerLogger, ILogger
Constructors
| Edit this page View SourceFluentMigratorConsoleLogger(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 SourceWriteElapsedTime(TimeSpan)
Writes the elapsed time
Declaration
protected override void WriteElapsedTime(TimeSpan timeSpan)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeSpan | The elapsed time |
Overrides
| Edit this page View SourceWriteEmphasize(string)
Writes an emphasized text
Declaration
protected override void WriteEmphasize(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to write |
Overrides
| Edit this page View SourceWriteEmptySql()
Called when an attempt was made to write an empty SQL statement
Declaration
protected override void WriteEmptySql()
Overrides
| Edit this page View SourceWriteError(Exception)
Writes an exception message
Declaration
protected override void WriteError(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
Exception | exception | The exception containing the message |
Overrides
| Edit this page View SourceWriteError(string)
Writes an error message
Declaration
protected override void WriteError(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message |
Overrides
| Edit this page View SourceWriteHeading(string)
Writes a heading
Declaration
protected override void WriteHeading(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The heading message |
Overrides
| Edit this page View SourceWriteSay(string)
Writes a message
Declaration
protected override void WriteSay(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message |
Overrides
| Edit this page View SourceWriteSql(string)
Writes an SQL statement
Declaration
protected override void WriteSql(string sql)
Parameters
Type | Name | Description |
---|---|---|
string | sql | The SQL statement |