You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:12:11 UTC
Re: [D] Superset upgrade from 2 to 3 [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Superset upgrade from 2 to 3
<!-- Answer -->
LOG_FORMAT sets the structure of log messages using standard Python logging syntax, so logs will include the timestamp, log level, logger name, and the message itself (for example: 2024-01-20 12:00:00:INFO:my_logger:Something happened) [reference](https://github.com/apache/superset/blob/master/superset/config.py).
LOG_LEVEL controls the minimum severity of logs that will be output (e.g., DEBUG, INFO, WARNING, ERROR, CRITICAL). Setting it via get_env_variable("LOG_LEVEL", "INFO") means Superset will use the value of the LOG_LEVEL environment variable if set, or default to "INFO" if not. This allows you to change log verbosity without editing code [reference](https://github.com/apache/superset/blob/master/docker/pythonpath_dev/superset_config.py).
Superset does not provide a built-in get_env_variable function—you or your organization must define it. A typical implementation looks like:
```python
import os
def get_env_variable(name, default):
return os.environ.get(name, default)
```
This logging configuration pattern is consistent between Superset 2 and 3, so you shouldn't encounter breaking changes related to these settings during your upgrade [reference](https://github.com/apache/superset/blob/master/superset/utils/logging_configurator.py).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=9a27a95e-1222-45c0-b10c-4f008243e245) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/37264#discussioncomment-15545328
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org