folly::stringToLogLevel

Construct a LogLevel from a string name.

Synopsis

Declared in <folly/logging/LogLevel.h>

LogLevel
stringToLogLevel(folly::StringPiece name);

Return Value

The LogLevel corresponding to the given name.

Parameters

NameDescription
nameThe string name of the log level.