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