folly/folly/logging/LogCategory.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#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 {}

/*static*/ 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) {}
} // namespace folly