Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1210

Username should appear in each line of log

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1 Larks
    • Fix Version/s: 1.3 Larks
    • Labels:
      None
    • Sprint:
      Larks 1.2, 1.3 Larks

      Description

      We need to use slf4j's MDC (mapped diagnostic context) in order to show user ID for each line of code we have.
      The MDC should start in the very first listener/filter and user id should be put there. Then when response is sent the MDC should be removed.
      Note, that MDC has to be cleared after each request so that we don't leak.

      If a not-registered user is using forum, then we should put there: [anonymous-1324]. Note, that last 4 numbers is last 4 numbers of SESSIONID.

        Attachments

        1. cp1251.png
          508 kB
          Maksim Reshetov
        2. utf8.png
          507 kB
          Maksim Reshetov

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  tigressap Alyona
                  Reporter:
                  ctapobep Stanislav Bashkyrtsev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 0h
                    0h
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 4h
                    4h

                      Structure Helper Panel