PythonWin: logging module not showing messages from imported modules

Discussion in 'Python' started by rodrigostrauss, Jan 6, 2006.

  1. Having the following code:

    ==== ====
    import logging
    def X():

    If I import it into PythonWin console and call X(), the error message
    is not printed. If I do the same in Python console the message is
    printed. Do I need to configure the logging module or it's a problem
    with PythonWin?

    If I call logging.error() in the PythonWin console it works like a
    charm. The problem is just regarding imported modules.

    Rodrigo Strauss
    rodrigostrauss, Jan 6, 2006
    1. Advertisements

  2. rodrigostrauss

    jmdeschamps Guest

    Do you *run* module1 before attempting to call X() from the interactive
    jmdeschamps, Jan 6, 2006
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.