Sign in Join
FPDoc Onlineexperiment

GlobalDBLogHook variable

In unit SQLDB

Global logging hook.

Declaration

pascal
GlobalDBLogHook: TDBLogNotifyEvent

Description

GlobalDBLogHook can be set in addition to local Onlog event handlers. All connections will report events through this global event handler in addition to their OnLog event handlers. The global log event handler can be set only once, so when setting the handler, it is important to set up chaining: saving the previous value, and calling the old handler (if it was set) in the new handler.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.