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

Add a structured logger #443

Merged
merged 1 commit into from
Feb 22, 2025
Merged

Conversation

karlseguin
Copy link
Contributor

In debug mode, it has a more user-friendly output:

level | the log messge | ms since last message | key=value key=value

In release mode, it logs using logfmt, which is supported by most log ingestion frameworks.

Not being used anywhere right now, keeping this PR small with no impact on existing code.

@krichprollsch
Copy link
Member

@karlseguin LGTM. Can you please rebase the branch? 🙏

In debug mode, it has a more user-friendly output:

level | the log messge | ms since last message | key=value key=value

In release mode, it logs using logfmt, which is supported by most log
ingestion frameworks.

Not being used anywhere right now, keeping this PR small with no impact on
existing code.
@krichprollsch krichprollsch merged commit 3f23e07 into lightpanda-io:main Feb 22, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2025
@karlseguin karlseguin deleted the logging branch February 24, 2025 10:53
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.

2 participants