Project

Profile

Help

Task #3372

Ability to configure logging pattern via config

Added by lzap@redhat.com over 2 years ago. Updated over 1 year ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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:

https://pulp.plan.io/issues/3289

History

#1 Updated by lzap@redhat.com over 2 years ago

Please provide some documentation about the pattern format and available fields.

#2 Updated by lzap@redhat.com about 2 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

#3 Updated by bmbouter over 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

#4 Updated by lzap@redhat.com over 1 year 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.

#5 Updated by bmbouter over 1 year 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

#6 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF