Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-43

Remove LOG macro

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • legacy-1.0.0-rc1
    • Affects Version/s: None
    • Component/s: API
    • Labels:

      From https://github.com/mongodb/mongo/pull/166 (Created January 2012)

      The macro "LOG" should be removed because the name "LOG" is too common and conflicts with some other products.

      For example, current mongodb is not work with google-glog. It also uses "LOG" macro for logging.

      Here is a sample code:

      #include <glog/logging.h>
      #include <client/dbclient.h> // <- undefs LOG macro
      
      int main() {
        LOG(ERROR) << "hoge"; // compile error
      }
      

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            matt.kangas Matt Kangas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: