FutureSharks / invokust

A wrapper for locust to allow running load tests in python or on AWS Lambda
MIT License
158 stars 42 forks source link

Logging Configuration #63

Open laeg opened 1 year ago

laeg commented 1 year ago

Is there a way to configure what is logged/stdout?

FutureSharks commented 1 year ago

No but PRs are welcome 🙂

laeg commented 1 year ago

Any suggestions for a place to start?

FutureSharks commented 1 year ago

Normally in python you create log messages at different levels and then allow the user to simply choose the level.

The main lambda function logger is here.

If you want to adjust logging in invokr.py, check here.

You could use a condition to adjust the level based on some settings.