Task #3372
closedAbility to configure logging pattern via config
0%
Description
Pulp currently have hardcoded logging pattern, in Katello/Satellite 6 we need to be able to configure this pattern via a configuration file. Our goal is to be able to configure pseudo-JSON output:
{ "message": "%m", "request": "%request_id" }
Note the %request_id is a variable which is not yet available in pulp, I created another ticket to support that:
Updated by lzap@redhat.com over 6 years ago
Please provide some documentation about the pattern format and available fields.
Updated by lzap@redhat.com over 6 years ago
The following tickets are needed in order to improve logging in Foreman:
https://pulp.plan.io/issues/3372
https://pulp.plan.io/issues/3289
https://pulp.plan.io/issues/3288
Updated by bmbouter over 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by lzap@redhat.com over 5 years ago
Hey, this is a recognized Satellite 6 feature, was this close intentional? Pulp is the only component we are waiting for to provide this capability, it's been implemented for everything else. You are scheduled as last since heavy work on Pulp 3, but we need this feature. Thanks for info.
Updated by bmbouter over 5 years ago
I don't see a bugzilla attached to this issue so I can't speak to the Satellite inclusion or not. We should check with the Satellite lead for Pulp. I think currently that is @dkliban.
We do have this resolved in Pulp3 though. Pulp3 uses Django logging facilities so you can configure a logging formatter like this: https://docs.djangoproject.com/en/1.8/topics/logging/#configuring-logging