Show / Hide Table of Contents

Class DbSession<TConnection, TCommand, TReader>.Logger

Logs records to a variety of destinations such as log files or the console.

Inheritance
System.Object
DbSession<TConnection, TCommand, TReader>.Logger
Implements
IDbTransactionInterceptor
IDbReaderInterceptor<TCommand, TReader>
IAddon
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data.Primitives
Assembly: DevZest.Data.dll
Syntax
protected class Logger : IDbConnectionInterceptor<TConnection>, IDbTransactionInterceptor, IDbReaderInterceptor<TCommand, TReader>, IDbNonQueryInterceptor<TCommand>, IAddon

Properties

Name Description
Stopwatch

Gets the stop watch used to record time elapsed during executions.

Methods

Name Description
Write(LogCategory, String)

Writes the given string to the underlying write delegate.

WriteCommand(TCommand)

Writes command into logging.

WriteCommandExecuted<TResult>(TCommand, TResult, AddonInvoker)

Writes logging message for command executed.

WriteCommandExecuting(TCommand, AddonInvoker)

Writes logging message for command executing.

WriteConnectionClosed(TConnection, AddonInvoker)

Writes logging message for connection closed.

WriteConnectionClosing(TConnection, AddonInvoker)

Writes logging message for connection closing.

WriteConnectionOpened(TConnection, AddonInvoker)

Writes logging message for connection opened.

WriteConnectionOpening(TConnection, AddonInvoker)

Writes logging message for connection opening.

WriteTransactionBegan(Nullable<IsolationLevel>, String, AddonInvoker)

Writes logging message for transaction began.

WriteTransactionBeginning(Nullable<IsolationLevel>, String, AddonInvoker)

Writes logging message for transaction beginning.

WriteTransactionCommitted(ITransaction, AddonInvoker)

Writes logging message for transaction committed.

WriteTransactionCommitting(ITransaction, AddonInvoker)

Writes logging message for transaction committing.

WriteTransactionRolledBack(ITransaction, AddonInvoker)

Writes logging message for transaction rolled back.

WriteTransactionRollingBack(ITransaction, AddonInvoker)

Writes logging message for transaction rolling back.

Explicit Interface Implementations

Name Description
IAddon.Key
IDbReaderInterceptor<TCommand, TReader>.OnExecuted(Model, TCommand, TReader, AddonInvoker)
IDbReaderInterceptor<TCommand, TReader>.OnExecuting(Model, TCommand, AddonInvoker)
IDbTransactionInterceptor.OnBegan(Nullable<IsolationLevel>, String, AddonInvoker)
IDbTransactionInterceptor.OnBeginning(Nullable<IsolationLevel>, String, AddonInvoker)
IDbTransactionInterceptor.OnCommitted(ITransaction, AddonInvoker)
IDbTransactionInterceptor.OnCommitting(ITransaction, AddonInvoker)
IDbTransactionInterceptor.OnRolledBack(ITransaction, AddonInvoker)
IDbTransactionInterceptor.OnRollingBack(ITransaction, AddonInvoker)

Extension Methods

ColumnExtensions.WithDefaultValue<TColumn, TValue>(TColumn, TValue, String, String)
ColumnExtensions.WithValueComparer<TColumn, TValue>(TColumn, IComparer<TValue>)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest