Logger working for all errors