#include <folly/logging/AsyncLogWriter.h>
#include <folly/Exception.h>
#include <folly/FileUtil.h>
#include <folly/Portability.h>
#include <folly/logging/LoggerDB.h>
#include <folly/system/AtFork.h>
#include <folly/system/ThreadName.h>
namespace folly {
AsyncLogWriter::AsyncLogWriter() { … }
AsyncLogWriter::~AsyncLogWriter() { … }
FOLLY_CONSTINIT std::atomic<AsyncLogWriter::DiscardCallback>
AsyncLogWriter::discardCallback_{ … };
void AsyncLogWriter::setDiscardCallback(DiscardCallback callback) { … }
void AsyncLogWriter::invokeDiscardCallback(size_t numDiscarded) { … }
void AsyncLogWriter::cleanup() { … }
void AsyncLogWriter::writeMessage(StringPiece buffer, uint32_t flags) { … }
void AsyncLogWriter::writeMessage(std::string&& buffer, uint32_t flags) { … }
void AsyncLogWriter::flush() { … }
void AsyncLogWriter::setMaxBufferSize(size_t size) { … }
size_t AsyncLogWriter::getMaxBufferSize() const { … }
void AsyncLogWriter::ioThread() { … }
bool AsyncLogWriter::preFork() { … }
void AsyncLogWriter::postForkParent() { … }
void AsyncLogWriter::postForkChild() { … }
void AsyncLogWriter::stopIoThread(
folly::Synchronized<Data, std::mutex>::LockedPtr& data,
uint32_t extraFlags) { … }
void AsyncLogWriter::restartThread() { … }
}