MCPcopy Create free account
hub / github.com/apache/brpc / InitLogging

Function InitLogging

src/butil/logging.h:295–297  ·  view source on GitHub ↗

Sets the log file name and other global logging state. Calling this function is recommended, and is normally done at the beginning of application init. If you don't call it, all the flags will be initialized to their default values, and there is a race condition that may leak a critical section object if two threads try to do the first log at the same time. See the definition of the enums above fo

Source from the content-addressed store, hash-verified

293// loging in to a user partition), however it should never be called more than
294// twice.
295inline bool InitLogging(const LoggingSettings& settings) {
296 return BaseInitLoggingImpl(settings);
297}
298
299// Sets the log level. Anything at or above this level will be written to the
300// log file/displayed to the user (if applicable). Anything below this level

Callers 1

TEST_FFunction · 0.85

Calls 1

BaseInitLoggingImplFunction · 0.85

Tested by 1

TEST_FFunction · 0.68