How To Log Executed SQL

From Dabo Wiki
Jump to: navigation, search

By default, Dabo does not log database activity. However, you can change this by setting the Application object's DatabaseActivityLog property to either:

  1. the path to the log file or
  2. an open file-like object (e.g., sys.stdout)

Once this is set, all database execution, including any parameters, will be written to that log. To turn off logging, simply set the DatabaseActivityLog property to None.