Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to enhance logging configuration and update the build process. The most important changes include adding logging configuration classes for Uvicorn, updating the build and test workflow to include the
develop
branch, and improving logging in example applications.Logging Configuration Enhancements:
src/chromatrace/uvicorn/config.py
: AddedUvicornLoggingSettings
class andGetLoggingConfig
function to manage logging settings and configurations.src/chromatrace/uvicorn/formatters.py
: Introduced custom log formatter classesBasicFormatter
,DefaultFormatter
, andAccessFormatter
for enhanced log formatting with color support.Build Process Updates:
.github/workflows/build.yml
: Updated the build and test workflow to trigger on pushes and pull requests to thedevelop
branch in addition to themain
branch.pyproject.toml
: Updated the project version from0.1.9
to0.2.9
.Example Applications Logging Improvements:
src/examples/frameworks/api_app.py
: Updated therun
method to use the new logging configuration and added new endpoints for logging demonstration. [1] [2]src/examples/frameworks/socket_app.py
: Updated therun
method to use the new logging configuration and set the log level toinfo
. [1] [2]Additional Imports:
src/chromatrace/__init__.py
: Added imports forGetLoggingConfig
andUvicornLoggingSettings
.src/chromatrace/uvicorn/__init__.py
: Added imports forGetLoggingConfig
andUvicornLoggingSettings
.