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 input gets quoted, with line feed characters escaped #9

Closed
bastienbc opened this issue Mar 13, 2017 · 2 comments
Closed

Multiline input gets quoted, with line feed characters escaped #9

bastienbc opened this issue Mar 13, 2017 · 2 comments

Comments

@bastienbc
Copy link

Hi!

I have a multiline input to log (the content of a short file), and without your formatter,
it is written as I expect to.

But your formatter escapes the new line (\n) if I don't use colors.
It is the needsQuote part that does that I think...

Can you do anything for me?

@x-cray
Copy link
Owner

x-cray commented Mar 13, 2017

@bastienbc Quoting in this case is intended as otherwise it wouldn't be possible to parse such output with automatic tools which understand logfmt

@bastienbc
Copy link
Author

You are right.
It's just that because I use a multiwriter to write to both stdout and a file,
it didn't use the fancy color output...

I'll find an other way, thanks!

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

No branches or pull requests

2 participants