opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
85 stars 68 forks source link

Include a default set of identifiers to all log items (e.g. user id) #6472

Open rikukissa opened 7 months ago

rikukissa commented 7 months ago

Description

Create a shared "logging" library under @opencrvs/commons. This will encapsulate both hapi-pino and pino. For the Hapi plugin that encapsulates hapi-pino, write a log transformer that includes logged in user's userId to each log item we write.

Acceptance criteria

GIVEN WHEN THEN

Design

(Link to Figma)

Dev tasks

euanmillar commented 7 months ago

Related to: https://github.com/opencrvs/opencrvs-core/issues/6208 ?