SAP / cf-python-logging-support

Logging library for python applications deployed on SAP Cloud Platform - CloudFoundry environment
Apache License 2.0
17 stars 11 forks source link

Cloud foundry logs msg field with additional fields. #41

Closed MikoLasso123 closed 1 year ago

MikoLasso123 commented 4 years ago

Im using a flask app with cloudfoundry and the logs show a bunch of additional fields inside the msg:, eventhough these fields are to be found as separate fields in the log record. What is the best way to remove these fields from msg: and just keep that field clean.

alexpenev-s commented 4 years ago

Hello, Could you please give an example of how you log it and what you get? When I try it out I get: "msg": "Hi", "REQUEST_KEY": "a" Where REQUEST_KEY is passed as an extra field.