32 #include "../api_core.h" 33 #include "string_format.h" 34 #include "string_help.h" 35 #include "../System/mutex.h" 77 virtual void log(
const std::string &type,
const std::string &text);
89 CL_API_CORE
void log_event(
const std::string &type,
const std::string &text);
92 void log_event(
const std::string &type,
const std::string &format, Arg1 arg1)
95 template <
class Arg1,
class Arg2>
96 void log_event(
const std::string &type,
const std::string &format, Arg1 arg1, Arg2 arg2)
99 template <
class Arg1,
class Arg2,
class Arg3>
100 void log_event(
const std::string &type,
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3)
103 template <
class Arg1,
class Arg2,
class Arg3,
class Arg4>
104 void log_event(
const std::string &type,
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
107 template <
class Arg1,
class Arg2,
class Arg3,
class Arg4,
class Arg5>
108 void log_event(
const std::string &type,
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5)
111 template <
class Arg1,
class Arg2,
class Arg3,
class Arg4,
class Arg5,
class Arg6>
112 void log_event(
const std::string &type,
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6)
115 template <
class Arg1,
class Arg2,
class Arg3,
class Arg4,
class Arg5,
class Arg6,
class Arg7>
116 void log_event(
const std::string &type,
const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7)
CL_API_CORE void log_event(const std::string &type, const std::string &text)
Log text to logger.
const std::string & get_result() const
static Mutex mutex
Logger mutex object.
Definition: logger.h:63
void set_arg(int index, const std::string &text)
Set arg.
Logger interface.
Definition: logger.h:43
Mutex class.
Definition: mutex.h:50
static std::vector< Logger * > instances
Pointers to currently enabled logger.
Definition: logger.h:60