Log4cxx
  1. Log4cxx
  2. LOGCXX-126

std::cout stops working if log4cxx is first to output

    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: Appender
    • Labels:
      None
    • Environment:
      Linux (RedHat FC4) x86_64, g++ 4.0.2 20051125 (Red Hat 4.0.2-8)

      Description

      If log4cxx is the first to write output via the ConsoleAppender, then std::cout (and stdout) doesn't work. If, on the other hand, std::cout is written to before log4cxx kicks in, then they both (std::cout and log4cxx) work. I will attach a small test program that illustrates the problem.

      1. output.cpp
        1 kB
        Andreas Fester
      2. triv.cpp
        0.4 kB
        Donovan Kolbly

        Activity

        Donovan Kolbly created issue -
        Donovan Kolbly made changes -
        Field Original Value New Value
        Attachment triv.cpp [ 12322623 ]
        Andreas Fester made changes -
        Assignee Curt Arnold [ carnold@apache.org ] Andreas Fester [ andreas ]
        Andreas Fester made changes -
        Attachment output.cpp [ 12323299 ]
        Curt Arnold made changes -
        Assignee Andreas Fester [ andreas ] Curt Arnold [ carnold@apache.org ]
        Fix Version/s 0.9.8 [ 10782 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development