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

LogLog::emit() could potentially interleave messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: