17 extern std::vector<std::ostream*> g_logging_outs;
22 extern std::vector<std::ostream*> g_logging_err_outs;
30 inline void log(
const T& data,
const bool err=
false) {
31 for (
auto out : (err ? g_logging_err_outs : g_logging_outs)) {
32 *out << data << std::endl;
37 inline void log(
const auss_t& data,
const bool err) {
38 log(data.to_string());
46 #define I3IPC_LOG(T, ERR) \
47 ::i3ipc::log((T), (ERR));
53 #define I3IPC_INFO(T) I3IPC_LOG(auss_t() << "i: " << T, false)
59 #define I3IPC_ERR(T) I3IPC_LOG(auss_t() << "E: " << T, true)
65 #define I3IPC_WARN(T) I3IPC_LOG(auss_t() << "W: " << T, true)
73 #define I3IPC_DEBUG(T) I3IPC_LOG(auss_t() << "D: " << T, true)
81 #define I3IPC_DEBUG(T)
Definition: ipc-util.hpp:12