chromaway / ngcccbase

next-gen colored coin client base
MIT License
85 stars 46 forks source link

unified logging #118

Open amidvidy opened 10 years ago

amidvidy commented 10 years ago

The codebase has ad hoc print statements and various LOGDEBUG type functions sprinkled throughout. It would be better to have a unified logging system with log levels (INFO, DEBUG, WARN) based on the python logging module. This will also help with debugging user issues once ngcccbase is more widely used by nontechnical folks.

killerstorm commented 10 years ago

How do we make logger object available everywhere?

amidvidy commented 10 years ago

see the first example here: http://docs.python.org/2/howto/logging-cookbook.html