[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'sqldb' (#fcl)

# GlobalDBLogHook

Global logging hook

## Declaration

Source position: sqldb.pp line 593

`var GlobalDBLogHook: TDBLogNotifyEvent;`

## Description

GlobalDBLogHook can be set in addition to local TSQLConnection.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

TSQLConnection.Onlog |  | Event handler for logging events

Documentation generated on: Feb 26 2014