lisa-lab/pylearn — Issue #41: Convert all prints to use loggers and appropriate log levels.
Author: dwf
Created: 2012-02-29 20:32:48+00:00
State: open

Specifically, stick something like
```python
import logging
...
...

logger = logging.getLogger("put.module.name.here")
```
at the t op of the module.

Very verbose output with print statements should then be replaced with ```logger.debug()```; less verbose but useful stuff with ``logger.info()``; stuff that goes wrong that the user should know about even if they don't care about ``info()`` level stuff should be a ``logger.warning()``, etc.

This will allow us to easily and programmatically redirect logging output, change logging verbosity, apply common styling to all log messages (add timestamps, blah).