Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

fix: Logging module always producing JSON#129

Merged
aponcedeleonch merged 3 commits intomainfrom
fix-logging
Nov 29, 2024
Merged

fix: Logging module always producing JSON#129
aponcedeleonch merged 3 commits intomainfrom
fix-logging

Conversation

@aponcedeleonch
Copy link
Copy Markdown
Member

@aponcedeleonch aponcedeleonch commented Nov 29, 2024

Right now even if we specify that we want TEXT logging output Codegate will use JSON. This fixes it. It also introduces structlog as a convenient already built formatter instead of making our own formatters hand-made

Closes: #111

Right now even if we specify that we want TEXT logging output Codegate
will use JSON. This fixes it. It also introduces `structlog` as
a convenient already built formatter instead of making our own
formatters hand-made
@aponcedeleonch
Copy link
Copy Markdown
Member Author

Logging examples after this change

TEXT

image

JSON

image

Copy link
Copy Markdown

@lukehinds lukehinds left a comment

Choose a reason for hiding this comment

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

Nice work! and thank you for updating docs too!

@aponcedeleonch aponcedeleonch merged commit b58e5aa into main Nov 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use structlog for logging

2 participants