tg icon indicating copy to clipboard operation
tg copied to clipboard

Web Resources: logging to include user info

Open 01es opened this issue 2 years ago • 0 comments

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:

  1. A custom Log4J appender.
  2. A modification of every web resource.
  3. A custom request filter.

Expected outcome

Ability to record user info with for every log message.

01es avatar Mar 01 '23 00:03 01es