Use logging level across application and modules

J

Jason Friedman

Base module: http://pastebin.com/nQCG5CRC
Another module: http://pastebin.com/FFzCCjwG
Application: http://pastebin.com/370cWJtT

I have a module that will provide base functionality, such as logging
and authentication.
I have other specialized modules that provide additional
functionality. One module will provide database connections, another
information about users and groups, etc.
I have an application script that uses the base module and one or more
specialized modules.

I want to allow the user to select a preferred logging level. That is
easy to do by passing that level as an argument to base.get_logger().
However, the application also uses the other module; how do I set the
logging level there to match the user's preference?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top