sapling/eden/fs
Michael Bolin 489e9071c4 Give each Thrift endpoint its own logging category.
Summary:
In Eden, some Thrift endpoints get a lot of hits whereas others are used less
frequently. By giving each endpoint its own logging category, we can toggle the
logging for each one independently.

Each of our Thrift endpoint methods should start with the following macro:

    INSTRUMENT_THRIFT_CALL();

then within the method, the macro `TLOG()` should be used everywhere
`XLOG(LEVEL)` would normally used. `LOG()` ensures the logger with the category
specific to the method will be used.

For an endpoint named `XXX`, the logging category will be `eden.thrift.XXX`.

Reviewed By: simpkins

Differential Revision: D6108311

fbshipit-source-id: 23a34179811359b0819434de31a3601d29c3b4f0
2017-11-07 20:56:12 -08:00
..
config run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
fuse run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
inodes Document and enforce the invariants in FileInode's State variant 2017-11-07 16:27:59 -08:00
journal run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
model run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
rocksdb run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
service Give each Thrift endpoint its own logging category. 2017-11-07 20:56:12 -08:00
store run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
testharness Store Hg dirstate data in Hg instead of Eden. 2017-11-06 19:56:49 -08:00
utils run clang-format across all C++ files 2017-11-03 16:02:03 -07:00