mirror of
https://github.com/ZmnSCPxj/clboss.git
synced 2026-08-16 13:00:59 +02:00
28 lines
405 B
C++
28 lines
405 B
C++
#ifndef BOSS_LOG_HPP
|
|
#define BOSS_LOG_HPP
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
# include"config.h"
|
|
#endif
|
|
|
|
namespace Ev { template<typename a> class Io; }
|
|
namespace S { class Bus; }
|
|
|
|
namespace Boss {
|
|
|
|
enum LogLevel {
|
|
Debug,
|
|
Info,
|
|
Warn,
|
|
Error
|
|
};
|
|
|
|
Ev::Io<void> log(S::Bus& bus, LogLevel l, const char *fmt, ...)
|
|
#if HAVE_ATTRIBUTE_FORMAT
|
|
__attribute__ ((format (printf, 3, 4)))
|
|
#endif
|
|
;
|
|
|
|
}
|
|
|
|
#endif /* BOSS_LOG_HPP */
|