Python logging typeerror
Question: Could you please help me, whats wrong.  

    
    
    import logging
    
    if (__name__ == "__main__"):
        logging.basicConfig(format='[%(asctime)s] %(levelname)s::%(module)s::%(funcName)s() %(message)s', level=logging.DEBUG)
        logging.INFO("test")
    

And I can't run it, I've got an error:

    
    
    Traceback (most recent call last):
      File "/home/htfuws/Programming/Python/just-kidding/main.py", line 5, in 
        logging.INFO("test")
    TypeError: 'int' object is not callable
    

Thank you very much.


Answer: [`logging.INFO` denotes](http://docs.python.org/2/howto/logging.html#logging-
advanced-tutorial) an integer constant with value of 20

> INFO Confirmation that things are working as expected.

What you need is
[`logging.info`](http://docs.python.org/2/library/logging.html#logging.info)

    
    
    logging.info("test")
    

