Skip to content

Add TOML as another logging config format#2806

Open
ewie wants to merge 1 commit intoKludex:mainfrom
ewie:log-config-format-toml
Open

Add TOML as another logging config format#2806
ewie wants to merge 1 commit intoKludex:mainfrom
ewie:log-config-format-toml

Conversation

@ewie
Copy link
Contributor

@ewie ewie commented Feb 3, 2026

Summary

Allow the logging config to be loaded from a TOML file as an alternative to JSON and YAML. Use tomllib from the standard library added with Python 3.11.

I find TOML easier to read and edit than JSON and YAML. And it's closer to the native configuration file format, while being easier to maintain as you don't have to separately list all loggers/handlers/formatters.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

Allow the logging config to be loaded from a TOML file as an alternative
to JSON and YAML.  Use tomllib from the standard library added with
Python 3.11.
@ewie ewie force-pushed the log-config-format-toml branch from 3945018 to 06ceae0 Compare February 3, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant