Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add file handler option for logging #114

Closed
wants to merge 3 commits into from

Conversation

matthewelwell
Copy link
Contributor

Add option to log to a file.

Overall I'm pretty unhappy adding this behaviour but a specific customer needs it.

@matthewelwell matthewelwell requested review from a team and gagantrivedi and removed request for a team June 14, 2024 16:30
@@ -79,7 +79,16 @@ def setup_logging(settings: LoggingSettings) -> None:
],
)

handler = logging.StreamHandler()
handler_kwargs = {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add some tests for this

@khvn26
Copy link
Member

khvn26 commented Jun 17, 2024

I feel this caters for a too specific problem. I'd spend a bit more time and try to incorporate logging.dictConfig or logging.fileConfig into edge-proxy's logging setup routine to allow users more flexibility. The hard, but not impossible, part would be allowing users to specify they want structlog when providing their own stdlib Python logging config.

@matthewelwell
Copy link
Contributor Author

Superseded by #115

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.

3 participants