Class FluentMigratorRunnerLogger
Logger that provides some default formatting
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Logging
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class FluentMigratorRunnerLogger : FluentMigratorLogger, ILogger
Constructors
| Edit this page View SourceFluentMigratorRunnerLogger(TextWriter, TextWriter, FluentMigratorLoggerOptions)
Declaration
public FluentMigratorRunnerLogger(TextWriter output, TextWriter error, FluentMigratorLoggerOptions options)
Parameters
Type | Name | Description |
---|---|---|
TextWriter | output | |
TextWriter | error | |
FluentMigratorLoggerOptions | 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 |