26class HAZELCAST_API logger
34 using handler_type = std::function<
35 void(
const std::string&,
const std::string&, level,
const std::string&)>;
37 logger(std::string instance_name,
38 std::string cluster_name,
40 handler_type handler);
42 bool enabled(level lvl)
noexcept;
44 void log(level lvl,
const std::string& msg)
noexcept;
46 static void default_handler(
const std::string& instance_name,
47 const std::string& cluster_name,
49 const std::string& msg)
noexcept;
52 const std::string instance_name_;
53 const std::string cluster_name_;
55 const handler_type handler_;
56 static std::mutex cout_lock_;