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

Multiline support #13

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Multiline support #13

wants to merge 1 commit into from

Conversation

ansel1
Copy link

@ansel1 ansel1 commented Jan 9, 2025

Sort multiline attr values to the end, and add newlines to the beginning and end of the value, so the value is printed completely on its own lines, e.g. :

2025-01-09 16:12:48 INF main.go:215 > hello world logger=console-slog error=boom size=5 errorVerbose=
boom

main.testVariousHandlers
        /Users/regan/dev/flume/v2/cmd/demo/main.go:215
main.main
        /Users/regan/dev/flume/v2/cmd/demo/main.go:78
runtime.main
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/runtime/proc.go:272
runtime.goexit
        /opt/homebrew/Cellar/go/1.23.4/libexec/src/runtime/asm_arm64.s:1223
2025-01-09 16:12:48 INF main.go:216 > hello world logger=console-slog error=boom size=5 flavor=vanilla

Sort multiline values to the end, and print the key on a separate line
@ansel1 ansel1 marked this pull request as draft January 11, 2025 16:48
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.

1 participant