Update logger default logic.

For setting a default console stream if the color middleware is in use
and for setting a default prefix for log messages.
Error: improve stack traces with logger.