|
dl
|
日志系统 更多...
#include <string>#include <iostream>#include <stack>#include <array>#include <mutex>#include "system/dl_platform.h"#include <stacktrace>#include <source_location>#include <fmt/format.h>类 | |
| struct | dl::LogSourceLocation |
| class | dl::LogSystem |
| 日志系统 更多... | |
| struct | dl::LogSystem::Setting |
| class | dl::LogLevelSet |
| 日志打印等级设置 更多... | |
| class | dl::LogLimit |
| 日志打印限制 更多... | |
| class | dl::LogStackTrack |
| 日志打开调用堆栈 更多... | |
命名空间 | |
| namespace | dl |
宏定义 | |
| #define | DL_SOURCE_LOCATION std::source_location location = std::source_location::current() |
| #define | DL_SOURCE_LOCATION_IMP std::source_location location |
| #define | DL_SOURCE_LOCATION_CALL std::source_location::current() |
| #define | DL_SOURCE_LOCATION_FORWARD location |
| #define | DL_MAKE_SOURCE_LOCATION(loc) |
| #define | log_(...) |
| #define | log_pause(...) |
| #define | log_test(...) |
| #define | log_info(...) |
| #define | log_msg(...) |
| #define | log_notice(...) |
| #define | log_warn(...) |
| #define | log_err(...) |
| #define | log_damage(...) |
函数 | |
| void | dl::Output (std::string_view str) |
| 打印到标准输出、vs、日志文件 | |
| void | dl::log_easy (std::string_view str) |
| 输出日志 | |
| void | dl::log_pause0 (std::string_view str, DL_SOURCE_LOCATION) |
| void | dl::log_test0 (std::string_view str, DL_SOURCE_LOCATION) |
| void | dl::log_info0 (std::string_view str, DL_SOURCE_LOCATION) |
| void | dl::log_msg0 (std::string_view str, DL_SOURCE_LOCATION) |
| void | dl::log_notice0 (std::string_view str, DL_SOURCE_LOCATION) |
| void | dl::log_warn0 (std::string_view str, DL_SOURCE_LOCATION) |
| void | dl::log_err0 (std::string_view str, DL_SOURCE_LOCATION) |
| void | dl::log_damage0 (std::string_view str, DL_SOURCE_LOCATION) |
| void | dl::log (std::string_view str, DL_SOURCE_LOCATION) |
| 以当前设置输出 | |
| void | dl::log_err0 (const std::exception &e, DL_SOURCE_LOCATION) |
| 特殊类型输出 | |
| void | dl::log_err0 (const std::system_error &e, DL_SOURCE_LOCATION) |
变量 | |
| constexpr std::array< std::string_view, 9 > | dl::DL_LOG_SYSTEM_LEVLE_NAME |
| LogSystem * | dl::g_log |
| #define DL_MAKE_SOURCE_LOCATION | ( | loc | ) |
| #define DL_SOURCE_LOCATION std::source_location location = std::source_location::current() |
| #define log_ | ( | ... | ) |
| #define log_damage | ( | ... | ) |
| #define log_err | ( | ... | ) |
| #define log_info | ( | ... | ) |
| #define log_msg | ( | ... | ) |
| #define log_notice | ( | ... | ) |
| #define log_pause | ( | ... | ) |
| #define log_test | ( | ... | ) |
| #define log_warn | ( | ... | ) |