Constructor. * This constructor creates a logger. * * @param context The execution context used to locate the logger service. * * @param identifier An identifier for this logger. */
| 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; |