tg
tg copied to clipboard
Web Resources: logging to include user info
Description
Authenticated requests may result in exceptional situations, which do get logged, but without capturing any user information. Having user info could assist in resolving some of the issues in practice (e.g., a misconfiguration affecting only some users).
The actual approach to implementing logging with user info needs to be defined and would require some experimentation. Possible approaches include:
- A custom Log4J appender.
- A modification of every web resource.
- A custom request filter.
Expected outcome
Ability to record user info with for every log message.