Replacing log calls with logging (root logger).
Making logging consistent with web.py.