We no longer wrap stdout and stderr (yay!). print() statements in locust scripts will no longer automatically go into the log. If someone wants to add entries to the log they can use the root logger instead (logging.info(…)), or any custom logger named "locust.*".
The "console_logger" logger has been removed. For printing stats to the console we now use a logger called "locust.stats_logger". For printing output when using flags such as --show-task-ratio or -l we now use print() statements instead.
We now set up an exception handler that logs any unhandled exception, for every greenlet we spawn (using Greenlet.link_exception) unless they already have their own exception handler (e.g. Locust User greenlets).
Only allow valid --loglevel arguments.