35#include <nanolog/nanolog.h>
40constexpr static bool debug =
false;
42constexpr static bool debug =
true;
48using stream = nanolog::NanoLogLine;
49using Level = nanolog::LogLevel;
58void setLevel(Level lvl);
80void init(std::string
const &file_path, uint32_t roll_MB = 128);
101 static std::mutex io_lock;
102 std::stringstream ss;
133 template <
typename T>
134 inline std::stringstream &
140 inline std::stringstream &
141 operator<<(std::ostream &(*manip)(std::ostream &)) {
161 static std::mutex io_lock;
162 std::stringstream ss;
165 cerr(cerr
const &) =
delete;
167 template <
typename T>
168 inline std::stringstream &
169 operator<<(T
const &data) {
174 inline std::stringstream &
175 operator<<(std::ostream &(*manip)(std::ostream &)) {
189#define LOG_DEBUG(X) qb::io::cout() << X << std::endl;
194#define LOG_VERB(X) qb::io::cout() << X << std::endl;
199#define LOG_INFO(X) qb::io::cout() << X << std::endl;
204#define LOG_WARN(X) qb::io::cout() << X << std::endl;
209#define LOG_CRIT(X) qb::io::cout() << X << std::endl;
215#define LOG_DEBUG(X) \
cout(cout const &)=delete
Deleted copy constructor.
cout()=default
Default constructor.
~cout()
Destructor that flushes output.
std::stringstream & operator<<(T const &data)
Stream insertion operator.
Definition io.h:135
void init()
Initialize the asynchronous event system for the current thread.
Definition listener.h:294