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

Remove LOG macro

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • legacy-1.0.0-rc1
    • None
    • API

    Description

      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
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: