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

Used shared dragonfly logging configuration and logging middleware #294

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

AbooMinister25
Copy link
Contributor

@AbooMinister25 AbooMinister25 commented Jul 25, 2024

This PR refactors the logging setup for mainframe to use the shared logging configuration at https://github.com/vipyrsec/dragonfly-logging-config, and the LoggingMiddleware that it provides. Additionally, it also reads in logging configuration from a logger.toml file in the src/ directory, so things such as the formatter to use (JSON or development) and the log level can be configured without modifying the code.

Closes #289

…nd read in logging configuration from a logger.toml file
@AbooMinister25 AbooMinister25 requested review from a team as code owners July 25, 2024 20:57
…tiple files for different environments, and update code to use that instead
Copy link
Contributor

@jonathan-d-zhang jonathan-d-zhang left a comment

Choose a reason for hiding this comment

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

LGTM but let's just use the github repo directly

pyproject.toml Outdated Show resolved Hide resolved
@AbooMinister25 AbooMinister25 requested review from jonathan-d-zhang and a team July 28, 2024 17:47
Copy link
Contributor

@jonathan-d-zhang jonathan-d-zhang left a comment

Choose a reason for hiding this comment

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

lgtm

@AbooMinister25 AbooMinister25 merged commit afffef9 into main Jul 29, 2024
7 checks passed
@AbooMinister25 AbooMinister25 deleted the use-shared-logging-config branch July 29, 2024 01:17
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.

Use shared logging configuration.
2 participants