Page 1 of 1

Customizing QxOrm debug output

PostPosted: Wed Aug 08, 2012 7:58 pm
by sgiessl
Hi,

is there a way to enable/disable the sql query debug output "[QxOrm] sql query (3 ms) : [...]" of qxorm? For my entities this can get extremely crowdy.
I would like to turn these messages off - a run time switch (rather than compile time) would be preferred, to be able to occasionally turn it on again.

Best regards
Sandro

Re: Customizing QxOrm debug output

PostPosted: Thu Aug 09, 2012 7:24 am
by qxorm
Hi,

is there a way to enable/disable the sql query debug output

You can try this following setting :
Code: Select all
qx::QxSqlDatabase::getSingleton()->setTraceSqlQuery(false);

Using this setting, QxOrm library will not render informations about sql queries in console windows.
For more details about qx::QxSqlDatabase class : http://www.qxorm.com/doxygen/html/class ... abase.html

There is another topic with the same question here ;) :
viewtopic.php?f=2&t=101