Logging now behaves correctly (errors go out to stderr and messages to stdout)