Log4cxx
  1. Log4cxx
  2. LOGCXX-187

LogLog::emit() could potentially interleave messages

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None

      Description

      The implementation of LogLog::emit

      void LogLog::emit(const std::string& msg) {
      std::cerr << "log4cxx: " << msg << std::endl;
      }

      Does not synchronize access to std::cerr which could result in interleaved messages or worse if the implementation of std::cerr is not thread-safe.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development