C# Class Simple.Migrations.IntegrationTests.NUnitLogger

Inheritance: ILogger
显示文件 Open project: canton7/SimpleMigrations

Public Methods

Method Description
BeginMigration ( MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration is started

BeginSequence ( MigrationData from, MigrationData to ) : void

Invoked when a sequence of migrations is started

EndMigration ( MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration is completed successfully

EndMigrationWithError ( Exception exception, MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration fails with an error

EndSequence ( MigrationData from, MigrationData to ) : void

Invoked when a sequence of migrations is completed successfully

EndSequenceWithError ( Exception exception, MigrationData from, MigrationData currentVersion ) : void

Invoked when a sequence of migrations fails with an error

Info ( string message ) : void

Invoked when another informative message should be logged

LogSql ( string message ) : void

Invoked when SQL being executed should be logged

NUnitLogger ( string name ) : NUnit.Framework

Private Methods

Method Description
WriteError ( string message ) : void
WriteHeader ( string message ) : void
WriteWarning ( string message ) : void

Method Details

BeginMigration() public method

Invoked when an individual migration is started
public BeginMigration ( MigrationData migration, MigrationDirection direction ) : void
migration SimpleMigrations.MigrationData Migration being started
direction MigrationDirection Direction of the migration
return void

BeginSequence() public method

Invoked when a sequence of migrations is started
public BeginSequence ( MigrationData from, MigrationData to ) : void
from SimpleMigrations.MigrationData Migration being migrated from
to SimpleMigrations.MigrationData Migration being migrated to
return void

EndMigration() public method

Invoked when an individual migration is completed successfully
public EndMigration ( MigrationData migration, MigrationDirection direction ) : void
migration SimpleMigrations.MigrationData Migration which completed
direction MigrationDirection Direction of the migration
return void

EndMigrationWithError() public method

Invoked when an individual migration fails with an error
public EndMigrationWithError ( Exception exception, MigrationData migration, MigrationDirection direction ) : void
exception System.Exception Exception which was encountered
migration SimpleMigrations.MigrationData Migration which failed
direction MigrationDirection Direction of the migration
return void

EndSequence() public method

Invoked when a sequence of migrations is completed successfully
public EndSequence ( MigrationData from, MigrationData to ) : void
from SimpleMigrations.MigrationData Migration which was migrated from
to SimpleMigrations.MigrationData Migration which was migrated to
return void

EndSequenceWithError() public method

Invoked when a sequence of migrations fails with an error
public EndSequenceWithError ( Exception exception, MigrationData from, MigrationData currentVersion ) : void
exception System.Exception Exception which was encountered
from SimpleMigrations.MigrationData Migration which was migrated from
currentVersion SimpleMigrations.MigrationData Last successful migration which was applied
return void

Info() public method

Invoked when another informative message should be logged
public Info ( string message ) : void
message string Message to be logged
return void

LogSql() public method

Invoked when SQL being executed should be logged
public LogSql ( string message ) : void
message string SQL to log
return void

NUnitLogger() public method

public NUnitLogger ( string name ) : NUnit.Framework
name string
return NUnit.Framework