Difference between revisions of "How To Log Executed SQL"

From Dabo Wiki
Jump to: navigation, search
(Created page with "By default, Dabo does not log database activity. However, you can change this by setting the Application object's <code>DatabaseActivityLog</code> property to either: # the p...")
 
(No difference)

Latest revision as of 14:11, 17 May 2020

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.