I would like to be able to configure default MLFlow logging level in scripts using an environment variable, rather than fetching the mlflow logger and setting the level using python as defined in https://mlflow.org/docs/latest/python_api/index.html#log-levels.
Motivation
What is the use case for this feature?
I want to inject this configuration by default in all MLFlow scripts so that the users will have a default configuration that is defined by the admins.
Why is this use case valuable to support for MLflow users in general?
Centralizing configuration in environment variables will make it easier to enforce standardization and to easily configure MLFlow features.
Why is this use case valuable to support for your project(s) or organization?
This will allow us to define the MLFlow logging level in all projects by injecting the variables by default in MLFlow scripts
Why is it currently difficult to achieve this use case?
Users currently have to define the logging level manually in every script as defined in https://mlflow.org/docs/latest/python_api/index.html#log-levels. The logging level defaults to info which logs a lot of unnecessary information when we are executing the script in a non interactive environment.
Details
No response
What component(s) does this bug affect?
[ ] area/artifacts: Artifact stores and artifact logging
[ ] area/build: Build and test infrastructure for MLflow
Willingness to contribute
Yes. I can contribute this feature independently.
Proposal Summary
I would like to be able to configure default MLFlow logging level in scripts using an environment variable, rather than fetching the mlflow logger and setting the level using python as defined in https://mlflow.org/docs/latest/python_api/index.html#log-levels.
Motivation
Details
No response
What component(s) does this bug affect?
area/artifacts
: Artifact stores and artifact loggingarea/build
: Build and test infrastructure for MLflowarea/deployments
: MLflow Deployments client APIs, server, and third-party Deployments integrationsarea/docs
: MLflow documentation pagesarea/examples
: Example codearea/model-registry
: Model Registry service, APIs, and the fluent client calls for Model Registryarea/models
: MLmodel format, model serialization/deserialization, flavorsarea/recipes
: Recipes, Recipe APIs, Recipe configs, Recipe Templatesarea/projects
: MLproject format, project running backendsarea/scoring
: MLflow Model server, model deployment tools, Spark UDFsarea/server-infra
: MLflow Tracking server backendarea/tracking
: Tracking Service, tracking client APIs, autologgingWhat interface(s) does this bug affect?
area/uiux
: Front-end, user experience, plotting, JavaScript, JavaScript dev serverarea/docker
: Docker use across MLflow's components, such as MLflow Projects and MLflow Modelsarea/sqlalchemy
: Use of SQLAlchemy in the Tracking Service or Model Registryarea/windows
: Windows supportWhat language(s) does this bug affect?
language/r
: R APIs and clientslanguage/java
: Java APIs and clientslanguage/new
: Proposals for new client languagesWhat integration(s) does this bug affect?
integrations/azure
: Azure and Azure ML integrationsintegrations/sagemaker
: SageMaker integrationsintegrations/databricks
: Databricks integrations