proxygen
|
#include <TestLogHandler.h>
Public Member Functions | |
TestLogHandlerFactory (StringPiece type) | |
StringPiece | getType () const override |
std::shared_ptr< LogHandler > | createHandler (const Options &options) override |
std::shared_ptr< LogHandler > | updateHandler (const std::shared_ptr< LogHandler > &existingHandler, const Options &options) override |
![]() | |
virtual | ~LogHandlerFactory ()=default |
virtual std::shared_ptr< LogHandler > | updateHandler (FOLLY_MAYBE_UNUSED const std::shared_ptr< LogHandler > &existingHandler, const Options &options) |
Private Attributes | |
std::string | type_ |
Additional Inherited Members | |
![]() | |
using | Options = std::unordered_map< std::string, std::string > |
A LogHandlerFactory to create TestLogHandler objects.
Definition at line 85 of file TestLogHandler.h.
|
inlineexplicit |
|
overridevirtual |
Create a new LogHandler.
Implements folly::LogHandlerFactory.
Definition at line 31 of file TestLogHandler.cpp.
References type_.
|
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 89 of file TestLogHandler.h.
References type_.
|
override |
Definition at line 36 of file TestLogHandler.cpp.
References folly::get_ptr().
|
private |
Definition at line 100 of file TestLogHandler.h.