Added stack traces to logger error calls while in development mode.