29 if (name ==
"stream") {
40 throw std::invalid_argument(
41 "no stream name specified for stream handler");
42 }
else if (
stream_ ==
"stderr") {
43 outputFile =
File{STDERR_FILENO,
false};
44 }
else if (
stream_ ==
"stdout") {
45 outputFile =
File{STDOUT_FILENO,
false};
47 throw std::invalid_argument(to<std::string>(
50 "\": expected one of stdout or stderr"));
64 getType(), &writerFactory, options);
static std::shared_ptr< StandardLogHandler > createHandler(StringPiece type, WriterFactory *writerFactory, const Options &options)
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
bool processOption(StringPiece name, StringPiece value)
std::shared_ptr< LogHandler > createHandler(const Options &options) override
bool processOption(StringPiece name, StringPiece value) override
FileWriterFactory fileWriterFactory_
StringPiece getType() const override
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)
std::shared_ptr< LogWriter > createWriter() override
std::shared_ptr< LogWriter > createWriter(File file)
std::unordered_map< std::string, std::string > Options