Skip to content

LogConfig Class ​

Definition ​

Configuration options for JASE.Database logging.

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Constructors ​

NameDescription
LogConfig()

Properties ​

NameDescription
CommandControls command execution logging for Query, NonQuery, and Scalar operations.
DumpCommandHistoryOnErrorWhen enabled, dumps recent command history when an execution fails.
IncludeParameterTypesWhen enabled, includes parameter names and types in command logs.
IncludeParameterValuesWhen enabled, includes parameter values in command logs.
IncludeSqlTextWhen enabled, includes SQL/DDL text in command and schema logs.
LifecycleControls lifecycle logging for sessions/connections (create/open/close/dispose).
LoggerFactoryOptional logger factory for this connection / registration.
ReaderControls reader lifecycle logging (reader opened/closed/disposed).
SchemaControls schema reconciliation and DDL-related logging.
SlowQueryWarningMsEmits a warning when a command takes at least this many milliseconds to complete.

Remarks ​

JASE logging is controlled by two filters:

LogConfig gating (defaults to None to keep JASE quiet by default).

The host application's logging provider/category filters (e.g., appsettings.json, Serilog, NLog).

Both must allow an event for it to be emitted. Logging is independent of Diagnostics (in-memory LastSQL / command history).

Logger factory resolution (first non-null wins): LoggerFactory, then LogFactory, then LogFactory, then a null logger factory.