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 DisableEscapeHTML parameter to JSONFormatter #982

Closed
wants to merge 1 commit into from

Conversation

Dakatan
Copy link

@Dakatan Dakatan commented Jun 24, 2019

Hi!

I use logrus, but http request and response xml is escaped by json encoder.
So, i add this parameter.

Logging sample.

  1. DisableEscapeHTML=false or default
{"level":"panic","msg":"","time":"0001-01-01T00:00:00Z","xml":"\u003cxml\u003e\u0026\u003c/xml\u003e"}
  1. DisableEscapeHTML=true
{"level":"panic","msg":"","time":"0001-01-01T00:00:00Z","xml":"<xml>&</xml>"}

Thank you!

@stale stale bot added the stale label Feb 26, 2020
@markphelps markphelps removed the stale label Feb 26, 2020
Repository owner deleted a comment from stale bot Feb 26, 2020
@markphelps
Copy link
Collaborator

Fixed in #1113. Thanks!

@markphelps markphelps closed this Mar 23, 2020
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.

None yet

2 participants