Project

Profile

Help

Task #3372

closed

Ability to configure logging pattern via config

Added by lzap@redhat.com about 6 years ago. Updated about 5 years 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

Actions #1

Updated by lzap@redhat.com almost 6 years ago

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

Actions #2

Updated by lzap@redhat.com almost 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

Actions #3

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #4

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

Actions #5

Updated by bmbouter about 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

Actions #6

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF