title: capturing logging messages from imported python file
body: <p>Getting logging information from an imported python file.</p>
  
  <p>I am building a python based test suite. 
  The tests are called using __import function
  I would like to capture the logging messages (in tests) in my test application. The logging messages are generated by using the python logging module.
  How can I do that ? For example in psuedo code:       </p>
  
  <pre><code>    for test in testList:  
  
                 # do something
               # Import Test   
  
               testid = __import__(test)  
  
               testOut = testid.run(parameter1,parameter2)    
  
               print "   =&gt; Result: %s\n" % testOut            
               # capture logging information from test which imports logging and append to wxpython window
  </code></pre>