SklavaBot 0.1.0
Telegram Bot in C++
|
#include <cstdint>
#include <iostream>
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | tools |
namespace | LOG |
Defined LOG types. | |
Macros | |
#define | FG_BRED "\033[1;31m" |
#define | FG_BYELLOW "\033[1;33m" |
#define | FG_BGREEN "\033[1;32m" |
#define | FG_BWHITE "\033[1;37m" |
#define | RESET "\033[0m" |
Functions | |
void | tools::flush () |
Flush stdin. | |
void | tools::log_cmd (std::string command, std::string user, std::int32_t timestamp, const std::string log_type) |
Function to print a better log. | |
Variables | |
const std::string | LOG::Info = FG_BWHITE "[INFO]" RESET |
const std::string | LOG::Warn = FG_BYELLOW "[WARN]" RESET |
const std::string | LOG::Error = FG_BRED "[ERROR]" RESET |
const std::string | LOG::Debug = FG_BGREEN "[DEBUG]" RESET |