that pointed me in the right direction, thanks....
the scheduler actually uses the "root" logger, so no configuration needs to
be added....
[logger_root]
level=DEBUG
handlers=consoleHandler
[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=simpleFormatter
args=(sys.stdout,)
did the trick, if anyone is interested.
I don't know what precisely is "class as a singleton" but I took another
approach....defining a function that initialize the class the first time
and return the initialized class all the subsequent calls, seems to work.
With the db, to make things work with all the db (by now seems that only
sqlite is affected), if you istantiate a class and save the "db" object,
sooner or later the connection is closed and no operation can be done.....
fortunately there is "from gluon import current"..... as long as the
connection object is not saved into the class but called every time , e.g.:
def someclassfunction(self):
db = current.db
return db(db.table.id>0).select()
it works.....
Let me play some more with that and I'll release the code to the public: if
all the devs "approve" the method we can definitely make a slice about it,
the docs are quite sparse on this matter :D
Again, thanks a lot.
Niphlod