C# Class FoundationDB.Filters.Logging.FdbLoggingExtensions

Set of extension methods that add logging support on transactions
ファイルを表示 Open project: BedeGaming/foundationdb-dotnet-client

Public Methods

Method Description
Annotate ( this trans, string message ) : void

Annotate a logged transaction

WithoutLogging ( this database ) : IFdbDatabase

Strip the logging behaviour of this database. Use this for boilerplate or test code that would pollute the logs otherwise.

Private Methods

Method Description
Annotate ( this trans, string format, object arg0 ) : void
Annotate ( this trans, string format, object arg0, object arg1 ) : void
Annotate ( this trans, string format, object arg0, object arg1, object arg2 ) : void
GetLogger ( IFdbReadOnlyTransaction trans ) : FdbLoggedTransaction
Logged ( [ database, [ handler, FdbLoggingOptions options = FdbLoggingOptions.Default ) : FdbLoggedDatabase

Method Details

Annotate() public static method

Annotate a logged transaction
public static Annotate ( this trans, string message ) : void
trans this
message string
return void

WithoutLogging() public static method

Strip the logging behaviour of this database. Use this for boilerplate or test code that would pollute the logs otherwise.
public static WithoutLogging ( this database ) : IFdbDatabase
database this Database instance (that may or may not be logged)
return IFdbDatabase