Class FluentMigratorConsoleLogger
The default fluent migrator console logger
Inherited Members
FluentMigrator.Runner.Logging.FluentMigratorLogger.Log<TState>(LogLevel, EventId, TState, Exception, Func<, , >)
Namespace: FluentMigrator.Runner.Logging
Assembly: FluentMigrator.Runner.dll
Syntax
public class FluentMigratorConsoleLogger : FluentMigratorRunnerLogger
Constructors
| Improve this Doc 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
| Improve this Doc View SourceWriteElapsedTime(TimeSpan)
Declaration
protected override void WriteElapsedTime(TimeSpan timeSpan)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | 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
| Improve this Doc View SourceWriteEmptySql()
Called when an attempt was made to write an empty SQL statement
Declaration
protected override void WriteEmptySql()
Overrides
| Improve this Doc View SourceWriteError(Exception)
Declaration
protected override void WriteError(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
Exception | exception |
WriteError(String)
Writes an error message
Declaration
protected override void WriteError(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message |
Overrides
| Improve this Doc View SourceWriteHeading(String)
Writes a heading
Declaration
protected override void WriteHeading(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The heading message |
Overrides
| Improve this Doc View SourceWriteSay(String)
Writes a message
Declaration
protected override void WriteSay(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message |
Overrides
| Improve this Doc View SourceWriteSql(String)
Writes an SQL statement
Declaration
protected override void WriteSql(string sql)
Parameters
Type | Name | Description |
---|---|---|
String | sql | The SQL statement |