Printing all errors though a logger