namecoin / nmcontrol

Namecoin Control. This repo is deprecated in favor of https://github.com/namecoin/ncdns
136 stars 38 forks source link

Standard logging module #62

Open JeremyRand opened 9 years ago

JeremyRand commented 9 years ago

The current logging system is pretty inflexible, it doesn't show timestamps, only supports two verbosity levels, and doesn't directly support logging to a file. Python has a standard logging module, has anyone used it before?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9105951-standard-logging-module?utm_campaign=plugin&utm_content=tracker%2F435873&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F435873&utm_medium=issues&utm_source=github).
phelixnmc commented 9 years ago

+1 http://pastebin.com/k6kHWfrJ

phelix commented 9 years ago

I am very happy with this logging configuration: https://github.com/phelix/nameGUI/blob/master/lib/mylogging.py It would also get rid of all 'print' statements, improving py3 compatibility.

phelixbtc commented 9 years ago

Suggested procedure: