InseeFrLab / onyxia-api

REST API of Onyxia
https://onyxia.sh
MIT License
24 stars 29 forks source link

Add some context (username, maybe more) to the logs #525

Open olevitt opened 3 days ago

olevitt commented 3 days ago

Now that we have structured logging (#523) , we can benefit from MDC (Mapped Diagnostic Context) to add context relevant to the logs.
I was thinking at least adding the username (for logs that are tied to an http request) but there may be other useful info to add