I want to count the number of times `logger.info` and `logger.error` 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.