Custom log message handler

Print all messages to stdout and errors to stderr.