title: How to override method of the logging module
body: <p>I want to count the number of times <code>logger.info</code> and <code>logger.error</code> has been hit. 
  I am planning to override default method error of logging, Can anyone suggest me how to do that ? 
  Need help to override error method so that every time code hit it count the value and increment counter. </p>