Get the default XLOG() category name for the given filename.

Synopsis

Declared in <folly/logging/xlog.h>

folly::StringPiece
getXlogCategoryNameForFile(folly::StringPiece filename);

Description

This function returns the category name that will be used by XLOG() if XLOG_SET_CATEGORY_NAME() has not been used.

Return Value

The default XLOG() category name for that file.

Parameters

Name

Description

filename

The source filename to derive a category name from.

Created with MrDocs