stack trace logging is now optional and defaults to off. Refactored so that the default options are visible to clients to help insulate them from future changes.