Log stack on error in logger