Made Logger copyable and thread-safe on writing to stdout and stderr