Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Use logging level across application and modules

Thread Tools

Use logging level across application and modules

Jason Friedman
Posts: n/a
Base module:
Another module:

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?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Application logging to screen and file - any favorite modules (no luck on cheeseshop) metaperl Python 6 09-23-2006 11:35 AM
c is a low-level language or neither low level nor high level language pabbu C Programming 8 11-07-2005 03:05 PM
Is Cisco PIX Application level firewall or Packet level firewall? Learning Cisco Cisco 3 10-15-2005 12:55 AM
Application level roles + Item level roles... how to do it? Jéjé ASP .Net Security 0 09-26-2005 11:06 PM