Commit Graph

3 Commits

Author SHA1 Message Date
Lars Holmberg baf007f1c9 Clean up documentation a little. 2024-02-28 21:12:55 +01:00
Jonatan Heyman fba7aff93a Improve how we do logging
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.
2020-04-13 19:39:54 +02:00
Ryan Zander 0bedcabc7a Added some simple documentation around logging. 2018-02-22 13:25:19 -08:00