proxygen
|
Classes | |
class | TestWriterFactory |
Public Member Functions | |
TestHandlerFactory (const std::shared_ptr< TestLogWriter > writer) | |
StringPiece | getType () const override |
std::shared_ptr< LogHandler > | createHandler (const Options &options) override |
Public Member Functions inherited from folly::LogHandlerFactory | |
virtual | ~LogHandlerFactory ()=default |
virtual std::shared_ptr< LogHandler > | updateHandler (FOLLY_MAYBE_UNUSED const std::shared_ptr< LogHandler > &existingHandler, const Options &options) |
Private Attributes | |
std::shared_ptr< TestLogWriter > | writer_ |
Additional Inherited Members | |
Public Types inherited from folly::LogHandlerFactory | |
using | Options = std::unordered_map< std::string, std::string > |
Definition at line 51 of file SyncLevelTest.cpp.
|
inline |
Definition at line 53 of file SyncLevelTest.cpp.
|
inlineoverridevirtual |
Create a new LogHandler.
Implements folly::LogHandlerFactory.
Definition at line 60 of file SyncLevelTest.cpp.
References folly::StandardLogHandlerFactory::createHandler().
|
inlineoverridevirtual |
Get the type name of this LogHandlerFactory.
The type field in the LogHandlerConfig for all LogHandlers created by this factory should match the type of the LogHandlerFactory.
The type of a LogHandlerFactory should never change. The returned StringPiece should be valid for the lifetime of the LogHandlerFactory.
Implements folly::LogHandlerFactory.
Definition at line 56 of file SyncLevelTest.cpp.
|
private |
Definition at line 67 of file SyncLevelTest.cpp.