dosubot[bot] commented on issue #8169: URL: https://github.com/apache/superset/issues/8169#issuecomment-3053330414
<!-- Answer --> The superset.log file should be created at the path set by FILENAME in your config (usually os.path.join(DATA_DIR, "superset.log")). If you're running in Docker, make sure your custom config (like superset_config.py) is placed at /app/docker/pythonpath_dev/superset_config_docker.py—otherwise, your settings may not be picked up and the log file won't be created as expected. Also, check that the DATA_DIR directory exists and is writable inside the container; if not, the log file won't be created and you might only see errors in the container's stdout/stderr logs. If ENABLE_TIME_ROTATE is True, Superset uses a TimedRotatingFileHandler to write logs to the file you specified. If the log file still isn't appearing, double-check the config file location, directory permissions, and look for any errors in the container logs during startup for clues about logging setup issues. For log type: the default log format includes the log level (INFO, ERROR, etc.), so you should see the type in each log entry if the file is being written. More details on logging config and Docker placement are here: - [Logging config reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py) - [Docker config placement](https://github.com/apache/superset/discussions/25487) - [How logging is set up in code](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/utils/logging_configurator.py) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b112d453-34b5-42e4-91cf-9fabfcc003bd?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b112d453-34b5-42e4-91cf-9fabfcc003bd?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b112d453-34b5-42e4-91cf-9fabfcc003bd?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b112d453-34b5-42e4-91cf-9fabfcc003bd?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b112d453-34b5-42e4-91cf-9fabfcc003bd?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b112d453-34b5-42e4-91cf-9fabfcc003bd?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b112d453-34b5-42e4-91cf-9fabfcc003bd?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/8169) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
