proxygen
|
Public Member Functions | |
bool | processOption (StringPiece name, StringPiece value) override |
std::shared_ptr< LogWriter > | createWriter () override |
Public Member Functions inherited from folly::StandardLogHandlerFactory::OptionProcessor | |
virtual | ~OptionProcessor () |
Public Attributes | |
std::string | path_ |
FileWriterFactory | fileWriterFactory_ |
Definition at line 24 of file FileHandlerFactory.cpp.
|
inlineoverridevirtual |
Implements folly::StandardLogHandlerFactory::WriterFactory.
Definition at line 39 of file FileHandlerFactory.cpp.
References folly::FileWriterFactory::createWriter(), fileWriterFactory_, and path_.
|
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 27 of file FileHandlerFactory.cpp.
References fileWriterFactory_, path_, folly::FileWriterFactory::processOption(), and folly::Range< Iter >::str().
FileWriterFactory folly::FileHandlerFactory::WriterFactory::fileWriterFactory_ |
Definition at line 49 of file FileHandlerFactory.cpp.
Referenced by createWriter(), and processOption().
std::string folly::FileHandlerFactory::WriterFactory::path_ |
Definition at line 48 of file FileHandlerFactory.cpp.
Referenced by createWriter(), and processOption().