logging: rename the `DEBUG` log level to `DBG`
authorAdam Simpkins <simpkins@fb.com>
Wed, 10 Jan 2018 04:08:35 +0000 (20:08 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 10 Jan 2018 04:26:36 +0000 (20:26 -0800)
commit24d6b776bc7f5608d7e553f361eb79f2dcf6d7f7
tree5baf49f6f1158de7c309b927e2ff3d9216e7a04c
parent489eeb1c2459073d09151b359109369e3f395d06
logging: rename the `DEBUG` log level to `DBG`

Summary:
I ran into some open source projects that define `DEBUG` as a preprocessor
macro on the compiler command line.  (They effectively defined it as the
opposite of `NDEBUG`.)  Doing some Google searches revealed that there are a
number of projects that appear to use this as a macro.

Therefore this diff renames the `DEBUG` log level enum value to `DBG` to avoid
potentially conflicting with projects that do use `DEBUG` as a macro name.

I did keep the behavior that `logLevelToString()` returns "DEBUG" for an input
of `LogLevel::DBG`.

Reviewed By: yfeldblum

Differential Revision: D6690465

fbshipit-source-id: 35bb1698afb45eb670e60c192f21390cbf09331d
folly/experimental/logging/LogLevel.cpp
folly/experimental/logging/LogLevel.h
folly/experimental/logging/test/ConfigUpdateTest.cpp
folly/experimental/logging/test/LogCategoryTest.cpp
folly/experimental/logging/test/LogLevelTest.cpp
folly/experimental/logging/test/LoggerTest.cpp
folly/experimental/logging/test/PrintfTest.cpp