logging: add logging levels to the logger instances

(integrated from trunk branch change d2e8adb by Todd Whiteman <toddw@activestate.com>)