Sibylle Koczian wrote:
> Hello,
>
> I don't understand the last exception I'm getting with an application
> modeled after the PyCon tutorial (the AppWizard part). So I want to log
> the SQL the application tries to execute, but I don't find enough
> information in the documentation and/or in the list archive. The
> information in the wiki is out of date, I think.
>
> In a recent thread a file settings-override.py is mentioned, but no
> example Dabo application on my machine seems to contain such a file. How
> should it look and where should it be? Another possibility seems to be
> "dabo.dbConsoleLogHandler.setLevel(logging.DEBUG)". In which file would
> such a call belong?
>
> Thank you for help,
> Sibylle
>
>
I don't use the AppWizzard but in a ClassDesigner app I turned on
logging with:
def createBizobjs(self):
itemsBizobj = self.Application.biz.ItemsBizobj(self.Connection)
self.addBizobj(itemsBizobj)
import sys, os, logging
dbLog = dabo.dbConsoleLogHandler.setLevel(logging.INFO)
namesBizobj = self.Application.biz.NamesBizobj(self.Connection)
self.addBizobj(namesBizobj)
Then just start your app from the terminal and you should see the SQL.
Regards, Jim
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]