add resource logger, include stack traces in logs