Jump to: navigation, search

Enhanced-context-logger-oslo

Revision as of 19:04, 4 February 2014 by Ssurana (talk | contribs) (Created page with "== Blueprint Design for ([https://blueprints.launchpad.net/oslo/+spec/enhanced-context-logger enhanced-context-logger]) == === Problem Statement === Currently, the logger does...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Blueprint Design for (enhanced-context-logger)

Problem Statement

Currently, the logger does not provide any means to the drivers or consumers to add any additional contextual information other than the one that has been baked into the logger e.g. instanceId. The blueprint is going to add the flexibility to the logger, so that if needed the consumer of the logger could add some contextual data that can then show up in the logs without changing the individual log statements throughout the code.

Proposed Design

The idea is to introduce a placeholder for sub-contextual information. The logic would run based on the presence of such placeholder. The classes that would be enhanced in the process would be the openstack.common.log.ContextAdapter and openstack.common.log.ContextFormatter