python-json-logger
python-json-logger copied to clipboard
Json Formatter for the standard python logger
Closes #171. Added an exists check for the old_field_name before asigning a value to log_record[new_field_name].
JsonFormatter `__init__` has a typo: `json_serialiser` (instead of `json_serializer`)
gh-91513: Added taskName attribute to logging module for use with asyncio tasks. https://github.com/python/cpython/issues/91513
removed superfluous indentation from example config
I tried the following configuration to get field names matching the OpenTelemetry semantic conventions: ```yaml json: (): pythonjsonlogger.jsonlogger.JsonFormatter rename_fields: otelTraceID: trace_id otelSpanID: span_id otelServiceName: service.name levelname: severity message: body threadName:...
When I rename some of the default field names using `rename_fields={key:key}` they are logged at the end of the json output. **current behaviour:** Log output without rename fields: `{"asctime": "2023-02-21T22:02:12+0100",...
I have a request to have a unique ID in the logs "per request". I can reproduce the problem that I'm trying to solve by this loop: ``` for i...
Hello, I'm using your library and would need to set it up to output logs in the logstash format so they get parsed correctly by third party services using logstash....
Method `utcnow` is deprecated and must be replaced with UTC object