util/log: Add a MESA_LOG_LEVEL environment variable

This lets us control how much logging we want Mesa to do, which is
useful in CI where we don't want to collect lots of log spam that then
has to be saved somewhere.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37203>
This commit is contained in:
Faith Ekstrand
2025-09-05 11:53:59 -04:00
committed by Marge Bot
parent 72ba6bbbe3
commit 14c2afcb06
3 changed files with 73 additions and 13 deletions

View File

@@ -81,6 +81,10 @@ Core Mesa environment variables
purposes (e.g. for driconf option matching, logging, artifact storage,
etc.).
.. envvar:: MESA_LOG_LEVEL
specifies the maximum log level
.. envvar:: MESA_LOG_FILE
specifies a file name for logging all errors, warnings, etc., rather