[issue33510] [logging] add JSON log formatter

2018-05-25 Thread Wilfredo Sanchez
Wilfredo Sanchez added the comment: Please consider using RFC 7464 (JSON Text Sequences). This allows detection of truncated JSON events without losing the following event. It allows newlines in the JSON data. All this involves is adding an RS between events. -- nosy: +wsanchez ___

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > I just wanted to say thanks to Steve for at least taking the time to open the > issues to ask if we would consider accepting the proposed changes. Sure, and I probably come across as somewhat tetchy in my responses. That's just down to a shortage of time at th

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Brett Cannon
Brett Cannon added the comment: I just wanted to say thanks to Steve for at least taking the time to open the issues to ask if we would consider accepting the proposed changes. -- nosy: +brett.cannon ___ Python tracker

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > The solution recommended in the logging cookbook does not do the same thing > as I have proposed. Perhaps not, but it appears to adequately address your first point: > Many logging aggregation and indexing systems require that log data must be > written in an

[issue33510] [logging] add JSON log formatter

2018-05-14 Thread Steve R. Hastings
Steve R. Hastings added the comment: The solution recommended in the logging cookbook does not do the same thing as I have proposed. I have proposed a logging handler that emits JSON suitable for ingestion by a log collection system. With the JSON formatter, all log events, no matter their

[issue33510] [logging] add JSON log formatter

2018-05-14 Thread Vinay Sajip
Vinay Sajip added the comment: > A "batteries included" JSON log formatter would be a useful enhancement. See https://docs.python.org/3/howto/logging-cookbook.html#implementing-structured-logging I don't propose to implement your suggestion. You've now logged three enhancement requests where

[issue33510] [logging] add JSON log formatter

2018-05-14 Thread Steve R. Hastings
New submission from Steve R. Hastings : Many logging aggregation and indexing systems require that log data must be written in an easy-to-parse format such as JSON. A "batteries included" JSON log formatter would be a useful enhancement. I have written code with the following features: Log e