MartenLogger Class

Summary

MartenLogger. Implements the Marten.IMartenLogger Implements the Marten.IMartenSessionLogger
Assembly
Rocket.Surgery.Extensions.Marten.dll
Namespace
Rocket.Surgery.Extensions.Marten
Interfaces
  • IMartenLogger
  • IMartenSessionLogger
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IMartenLogger"] Type-.->Interface1["IMartenSessionLogger"] Type["MartenLogger"] class Type type-node

Syntax

public class MartenLogger : IMartenLogger, IMartenSessionLogger

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
MartenLogger(ILogger) Initializes a new instance of the MartenLogger class.

Methods

Name Value Summary
LogFailure(NpgsqlCommand, Exception) void
Log a command that failed
LogSuccess(NpgsqlCommand) void
Log a command that executed successfully
RecordSavedChanges(IDocumentSession, IChangeSet) void
Records the saved changes.
SchemaChange(string) void
Schemas the change.
StartSession(IQuerySession) IMartenSessionLogger
Starts the session.

Extension Methods

See Also

  • Marten.IMartenLogger
  • Marten.IMartenSessionLogger