boost::log::register_sink_factory — The function registers a factory for a custom sink.
// In header: <boost/log/utility/init/from_settings.hpp> template<typename CharT> void register_sink_factory(const CharT * sink_name, function1< shared_ptr< sinks::sink< CharT > >, std::map< std::basic_string< CharT >, any > const & > const & factory);
The function registers a factory for a sink. The factory will be called to create sink instance when the parser discovers the specified sink type in the settings file. The factory must accept a map of parameters [parameter name -> parameter value] that it may use to initialize the sink. The factory must return a non-NULL pointer to the constructed sink instance.
Parameters: |
|