add: error method to Logger.java