Integrate Structlog for Structured and Configurable Logging#240
Merged
LucasQR merged 6 commits intobenavlabs:mainfrom Jan 19, 2026
Merged
Integrate Structlog for Structured and Configurable Logging#240LucasQR merged 6 commits intobenavlabs:mainfrom
LucasQR merged 6 commits intobenavlabs:mainfrom
Conversation
…nfiguration to use the new function name.
…tlog for enhanced logging context. Update worker settings to include new handlers.
Collaborator
|
@sri-dhurkesh Is this pr ready to merge? I did some tests and it seems to work fine besides the mypy error that i fixed |
Contributor
Author
|
@LucasQR , You can merge this now. I've tested it in my local environment and inside the Docker container. It works well. I've checked the logs in the logs directory and the text logs in the console, both in the container and locally. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Integrates Structlog as a wrapper around Python's standard logging to improve structured logging, request tracing, and log analysis. Adds separate handlers for file and console output with configurable formats and metadata.
Key Features
logger.pyon top of Python’s standard logging module.request_idis attached to every incoming request, allowing logs from the same request to be easily traced across the application.Log Configuration Settings
Reference Image Console
Console Log Image


Log File Image (app.log)