#include <folly/logging/LogCategory.h>
#include <cstdio>
#include <cstdlib>
#include <folly/ConstexprMath.h>
#include <folly/ExceptionString.h>
#include <folly/FileUtil.h>
#include <folly/MapUtil.h>
#include <folly/logging/LogHandler.h>
#include <folly/logging/LogMessage.h>
#include <folly/logging/LogName.h>
#include <folly/logging/LoggerDB.h>
namespace folly {
LogCategory::LogCategory(LoggerDB* db)
: … { … }
LogCategory::LogCategory(StringPiece name, LogCategory* parent)
: … { … }
void LogCategory::admitMessage(const LogMessage& message) const { … }
void LogCategory::processMessageWalker(
const LogCategory* category, const LogMessage& message) { … }
void LogCategory::processMessage(const LogMessage& message) const { … }
void LogCategory::addHandler(std::shared_ptr<LogHandler> handler) { … }
void LogCategory::clearHandlers() { … }
std::vector<std::shared_ptr<LogHandler>> LogCategory::getHandlers() const { … }
void LogCategory::replaceHandlers(
std::vector<std::shared_ptr<LogHandler>> handlers) { … }
void LogCategory::updateHandlers(const std::unordered_map<
std::shared_ptr<LogHandler>,
std::shared_ptr<LogHandler>>& handlerMap) { … }
void LogCategory::setLevel(LogLevel level, bool inherit) { … }
void LogCategory::setPropagateLevelMessagesToParent(LogLevel level) { … }
LogLevel LogCategory::getPropagateLevelMessagesToParentRelaxed() const { … }
void LogCategory::setLevelLocked(LogLevel level, bool inherit) { … }
void LogCategory::updateEffectiveLevel(LogLevel newEffectiveLevel) { … }
void LogCategory::parentLevelUpdated(LogLevel parentEffectiveLevel) { … }
void LogCategory::registerXlogLevel(std::atomic<LogLevel>* levelPtr) { … }
}