Appearance
LogConfig Class
Definition
Configuration options for JASE.Database logging.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Constructors
| Name | Description |
|---|---|
LogConfig() |
Properties
| Name | Description |
|---|---|
Command | Controls command execution logging for Query, NonQuery, and Scalar operations. |
DumpCommandHistoryOnError | When enabled, dumps recent command history when an execution fails. |
IncludeParameterTypes | When enabled, includes parameter names and types in command logs. |
IncludeParameterValues | When enabled, includes parameter values in command logs. |
IncludeSqlText | When enabled, includes SQL/DDL text in command and schema logs. |
Lifecycle | Controls lifecycle logging for sessions/connections (create/open/close/dispose). |
LoggerFactory | Optional logger factory for this connection / registration. |
Reader | Controls reader lifecycle logging (reader opened/closed/disposed). |
Schema | Controls schema reconciliation and DDL-related logging. |
SlowQueryWarningMs | Emits 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.