proxygen
|
Public Member Functions | |
bool | processOption (StringPiece name, StringPiece value) override |
std::shared_ptr< LogWriter > | createWriter () override |
![]() | |
virtual | ~OptionProcessor () |
Public Attributes | |
std::string | stream_ |
FileWriterFactory | fileWriterFactory_ |
Definition at line 25 of file StreamHandlerFactory.cpp.
|
inlineoverridevirtual |
Implements folly::StandardLogHandlerFactory::WriterFactory.
Definition at line 36 of file StreamHandlerFactory.cpp.
References folly::FileWriterFactory::createWriter(), fileWriterFactory_, folly::gen::move, and stream_.
|
inlineoverridevirtual |
Process an option.
This should return true if the option was processed successfully, or false if this is an unknown option name. It should throw an exception if the option name is known but there is a problem with the value.
Implements folly::StandardLogHandlerFactory::OptionProcessor.
Definition at line 28 of file StreamHandlerFactory.cpp.
References fileWriterFactory_, folly::FileWriterFactory::processOption(), folly::Range< Iter >::str(), and stream_.
FileWriterFactory folly::StreamHandlerFactory::WriterFactory::fileWriterFactory_ |
Definition at line 57 of file StreamHandlerFactory.cpp.
Referenced by createWriter(), and processOption().
std::string folly::StreamHandlerFactory::WriterFactory::stream_ |
Definition at line 56 of file StreamHandlerFactory.cpp.
Referenced by createWriter(), and processOption().