title: TypeError: 'int' object is not callable in Python 3
body: <p>I am getting <strong>TypeError: 'int' object is not callable</strong> after passing an object to my class with appropriate arguments.</p>
  
  <p>Is this an issue with logging or class?
  Can Anyone help me with this?</p>
  
  <p>Following is the Snippet:</p>
  
  <pre><code>import logging
  logging.basicConfig(level=logging.INFO, format='%(asctime)s-%(message)s')
  
  class employee:
  
      def __init__(self,first,last):
          self.first=first
          self.last=last
  
          logging.INFO('Employee created: {} - {} '.format(self.fullname, self.email))
  
      @property
      def email(self):
          return '{}.{}@email.com'.format(self.first,self.last)
      @property
      def fullname(self):
          return '{} {}'.format(self.first,self.last)
  
  emp_1=employee('John','Doe')
  emp_2=employee('John','Smith')
  </code></pre>