Enhance the logger to include additional contextual information in logs

Registered by Sidharth Surana

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.

Blueprint information

Status:
Started
Approver:
None
Priority:
Undefined
Drafter:
Sidharth Surana
Direction:
Needs approval
Assignee:
Sidharth Surana
Definition:
Discussion
Series goal:
None
Implementation:
Started
Milestone target:
None
Started by
Sidharth Surana

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/enhanced-context-logger,n,z

Addressed by: https://review.openstack.org/72480
    Adds sub-context support for logger

We are trying to eliminate the use of the ContextAdapter, since that requires consuming libraries to use oslo's logging module directly. The goal lis to have everything in place so the ContextFormatter can be configured and used by an application, without the libraries knowing. See https://review.openstack.org/#/c/63782/ for a bit of detail. -- dhellmann

Moving this out of I3 until we can find a good approach. -- dhellmann

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.