#include "staticlib/config.hpp"
#include <ctime>
#include <iostream>
#include <thread>
#include <string>
Go to the source code of this file.
Macros |
| #define | STATICLIB_PION_LOG_TO_OSTREAM(LOG, LEVEL, MSG) { std::cout << std::time(nullptr) << ' ' << std::this_thread::get_id() << ' ' << LEVEL << ' ' << LOG << ' ' << MSG << std::endl; } |
| #define | STATICLIB_PION_LOG_DEBUG(LOG, MSG) STATICLIB_PION_LOG_TO_OSTREAM(LOG, "DEBUG", MSG) |
| #define | STATICLIB_PION_LOG_INFO(LOG, MSG) STATICLIB_PION_LOG_TO_OSTREAM(LOG, "INFO", MSG) |
| #define | STATICLIB_PION_LOG_WARN(LOG, MSG) STATICLIB_PION_LOG_TO_OSTREAM(LOG, "WARN", MSG) |
| #define | STATICLIB_PION_LOG_ERROR(LOG, MSG) STATICLIB_PION_LOG_TO_OSTREAM(LOG, "ERROR", MSG) |
| #define | STATICLIB_PION_LOG_FATAL(LOG, MSG) STATICLIB_PION_LOG_TO_OSTREAM(LOG, "FATAL", MSG) |
Macro Definition Documentation
| #define STATICLIB_PION_LOG_TO_OSTREAM |
( |
|
LOG, |
|
|
|
LEVEL, |
|
|
|
MSG |
|
) |
| { std::cout << std::time(nullptr) << ' ' << std::this_thread::get_id() << ' ' << LEVEL << ' ' << LOG << ' ' << MSG << std::endl; } |