Summary:
Update `getXlogCategoryNameForFile()` to keep the file name suffix (e.g., `.h`
or `.cpp`) in the category name. Previously the code had stripped this out.
However it seems worth leaving it in:
- This makes it possible to independently control log levels for messages from
the header file vs the cpp file.
- This makes the category name logic slightly easier to explain to users.
The documents I added in
D6525997 already describe this new category name
selection behavior. This change updates the code to match the documented
behavior.
Reviewed By: yfeldblum
Differential Revision:
D6690464
fbshipit-source-id:
9af6b549d084bd900f788a08e9213e82579b664a