Log4cxx
  1. Log4cxx
  2. LOGCXX-221

ThreadID layout does not match debugger

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: Layout
    • Labels:
      None
    • Environment:
      Windows XP SP2.

      Description

      ThreadID gets displayed in hexadecimal. However, Visual Studio debugger displays them in decimal, making it harder to match up.
      Simple modification of file src\main\cpp\loggingevent.cpp at line 200 fixes this:

      Before: apr_snprintf(result, sizeof(result), "0x%.8x", threadId);
      After: apr_snprintf(result, sizeof(result), "%.5d", threadId);

        Activity

          People

          • Assignee:
            Curt Arnold
            Reporter:
            David Bertrand
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development