Use separate stream handlers for logging stack traces and normal log messages.

(Allows for separate format for logs without a stack trace.)
Modify exception line formatter to remove the stack trace placeholder if none was provided.