C# Class Pilgrim.Framework.Loggers.Logger

Text logger for the migration mediator
Inheritance: IAttachableLogger
Mostra file Open project: juanplopes/pilgrim

Public Methods

Method Description
ApplyingDBChange ( string sql ) : void
Attach ( ILogWriter writer ) : void
ConsoleLogger ( ) : ILogger
Detach ( ILogWriter writer ) : void
Exception ( long version, string migrationName, Exception ex ) : void
Exception ( string message, Exception ex ) : void
Finished ( List originalVersions, long currentVersion ) : void
Finished ( long originalVersion, long currentVersion ) : void
Log ( string format ) : void
Logger ( bool trace ) : System
MigrateDown ( long version, string migrationName ) : void
MigrateUp ( long version, string migrationName ) : void
RollingBack ( long originalVersion ) : void
Skipping ( long version ) : void
Started ( List currentVersions, long finalVersion ) : void
Started ( long currentVersion, long finalVersion ) : void
Trace ( string format ) : void
Warn ( string format ) : void

Private Methods

Method Description
LatestVersion ( List versions ) : string
LogExceptionDetails ( Exception ex ) : void
Write ( string message ) : void
WriteLine ( string message ) : void

Method Details

ApplyingDBChange() public method

public ApplyingDBChange ( string sql ) : void
sql string
return void

Attach() public method

public Attach ( ILogWriter writer ) : void
writer ILogWriter
return void

ConsoleLogger() public static method

public static ConsoleLogger ( ) : ILogger
return ILogger

Detach() public method

public Detach ( ILogWriter writer ) : void
writer ILogWriter
return void

Exception() public method

public Exception ( long version, string migrationName, Exception ex ) : void
version long
migrationName string
ex System.Exception
return void

Exception() public method

public Exception ( string message, Exception ex ) : void
message string
ex System.Exception
return void

Finished() public method

public Finished ( List originalVersions, long currentVersion ) : void
originalVersions List
currentVersion long
return void

Finished() public method

public Finished ( long originalVersion, long currentVersion ) : void
originalVersion long
currentVersion long
return void

Log() public method

public Log ( string format ) : void
format string
return void

Logger() public method

public Logger ( bool trace ) : System
trace bool
return System

MigrateDown() public method

public MigrateDown ( long version, string migrationName ) : void
version long
migrationName string
return void

MigrateUp() public method

public MigrateUp ( long version, string migrationName ) : void
version long
migrationName string
return void

RollingBack() public method

public RollingBack ( long originalVersion ) : void
originalVersion long
return void

Skipping() public method

public Skipping ( long version ) : void
version long
return void

Started() public method

public Started ( List currentVersions, long finalVersion ) : void
currentVersions List
finalVersion long
return void

Started() public method

public Started ( long currentVersion, long finalVersion ) : void
currentVersion long
finalVersion long
return void

Trace() public method

public Trace ( string format ) : void
format string
return void

Warn() public method

public Warn ( string format ) : void
format string
return void