MCPcopy Create free account
hub / github.com/boostorg/asio / basic_logger

Method basic_logger

example/cpp11/services/basic_logger.hpp:39–45  ·  view source on GitHub ↗

Constructor. * This constructor creates a logger. * * @param context The execution context used to locate the logger service. * * @param identifier An identifier for this logger. */

Source from the content-addressed store, hash-verified

37 * @param identifier An identifier for this logger.
38 */
39 explicit basic_logger(boost::asio::execution_context& context,
40 const std::string& identifier)
41 : service_(boost::asio::use_service<Service>(context)),
42 impl_(service_.null())
43 {
44 service_.create(impl_, identifier);
45 }
46
47 basic_logger(const basic_logger&) = delete;
48 basic_logger& operator=(basic_logger&) = delete;

Callers

nothing calls this directly

Calls 2

nullMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected