proxygen
|
#include <LogHandlerConfig.h>
Public Types | |
using | Options = std::unordered_map< std::string, std::string > |
Public Member Functions | |
LogHandlerConfig () | |
LogHandlerConfig (StringPiece type) | |
LogHandlerConfig (Optional< StringPiece > type) | |
LogHandlerConfig (StringPiece type, Options options) | |
LogHandlerConfig (Optional< StringPiece > type, Options options) | |
void | update (const LogHandlerConfig &other) |
bool | operator== (const LogHandlerConfig &other) const |
bool | operator!= (const LogHandlerConfig &other) const |
Public Attributes | |
Optional< std::string > | type |
Options | options |
Configuration for a LogHandler
Definition at line 29 of file LogHandlerConfig.h.
using folly::LogHandlerConfig::Options = std::unordered_map<std::string, std::string> |
Definition at line 31 of file LogHandlerConfig.h.
folly::LogHandlerConfig::LogHandlerConfig | ( | ) |
Definition at line 24 of file LogHandlerConfig.cpp.
|
explicit |
|
explicit |
Definition at line 28 of file LogHandlerConfig.cpp.
References folly::Optional< Value >::hasValue().
folly::LogHandlerConfig::LogHandlerConfig | ( | StringPiece | type, |
Options | options | ||
) |
Definition at line 31 of file LogHandlerConfig.cpp.
References folly::gen::move, options, and folly::Range< Iter >::str().
folly::LogHandlerConfig::LogHandlerConfig | ( | Optional< StringPiece > | type, |
Options | options | ||
) |
Definition at line 34 of file LogHandlerConfig.cpp.
References folly::Optional< Value >::hasValue(), folly::gen::move, and options.
bool folly::LogHandlerConfig::operator!= | ( | const LogHandlerConfig & | other | ) | const |
Definition at line 50 of file LogHandlerConfig.cpp.
bool folly::LogHandlerConfig::operator== | ( | const LogHandlerConfig & | other | ) | const |
Definition at line 46 of file LogHandlerConfig.cpp.
void folly::LogHandlerConfig::update | ( | const LogHandlerConfig & | other | ) |
Update this LogHandlerConfig object by merging in settings from another LogConfig.
The other LogHandlerConfig must not have a type set.
Definition at line 38 of file LogHandlerConfig.cpp.
References FOLLY_SAFE_DCHECK, folly::Optional< Value >::hasValue(), option(), options, and type.
Referenced by folly::LoggerDB::startConfigUpdate().
Options folly::LogHandlerConfig::options |
Definition at line 59 of file LogHandlerConfig.h.
Referenced by folly::logConfigToDynamic(), LogHandlerConfig(), folly::operator<<(), operator==(), folly::TestLogHandler::setOptions(), folly::LoggerDB::startConfigUpdate(), and update().
Optional<std::string> folly::LogHandlerConfig::type |
The handler type name.
If this field is unset than this configuration object is intended to be used to update an existing LogHandler object. This field must always be set in the configuration for all existing LogHandler objects.
Definition at line 57 of file LogHandlerConfig.h.
Referenced by folly::logConfigToDynamic(), folly::operator<<(), operator==(), folly::LoggerDB::startConfigUpdate(), and update().