Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-187

LogLog::emit() could potentially interleave messages

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.

        Attachments

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              carnold@apache.org Curt Arnold
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: