User logger method that takes exceptions