Change LOGGER statements to capture stack traces