Logging for frameworkd
Guillaume Chereau
charlie at openmoko.org
Wed Jul 23 10:35:09 CEST 2008
Hello,
I would like to solve the logging issue as soon as possible, the current
state of affair makes code logging tracing uneasy when we work on the
framework code.
The currents problems are :
* No way to able/disable log on a per service basis.
* Still too many 'print' in the code. it would be almost ok if it wasn't
for some of the ogsmd code that really mess the console
* Too many places to look for when we want to enable / disable logging.
At least :
* ogsmd/gsm/decor.py (FUNCTION_DEBUG = False)
* config.py
* FRAMEWORK_DEBUG env variable
I suggest we use python logging module [1]. It works in a manner similar
to Mickey LOG, except that you can create instances of loggers (one per
service for example)
Then all the logging levels could be set in frameworkd file, or maybe in
the config file.
If you guys are ok with that, I can try and make the modifications to
the code.
cheers,
-charlie
[1] http://docs.python.org/lib/module-logging.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxtogo.org/pipermail/smartphones-standards/attachments/20080723/4d985ac0/attachment.pgp>
More information about the smartphones-standards
mailing list