views:

26

answers:

1

I have seen this in a lot of python code what does this do? What is it useful for?

logging.basicConfig(level=loglevel,format=myname)

Please and thank you.

+2  A: 

Please read the documentation - it explains your question in detail: http://docs.python.org/library/logging.html#logging.basicConfig "baseConfig"

Piotr Duda