feat update log
All checks were successful
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m12s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m16s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m25s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m31s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m29s
linux-x64-gcc / linux-gcc (push) Successful in 1m38s

This commit is contained in:
tqcq 2024-02-27 10:37:24 +08:00
parent e2e8fa3e6d
commit c1dbc8194e

View File

@ -18,12 +18,13 @@ namespace tqcq {
std::string __fmt_str; \ std::string __fmt_str; \
try { \ try { \
__fmt_str = fmt::format(fmt_str, ##__VA_ARGS__); \ __fmt_str = fmt::format(fmt_str, ##__VA_ARGS__); \
catch (const std::exception &e) { __fmt_str = e.what(); } \ } catch (const std::exception &e) { \
tqcq::Logger::GetInstance().Log( \ __fmt_str = e.what(); \
level, __FILE__, __FUNCTION__, __LINE__, tag, \
fmt::format(fmt_str, ##__VA_ARGS__).c_str()); \
} \ } \
while (0) tqcq::Logger::GetInstance().Log( \
level, __FILE__, __FUNCTION__, __LINE__, tag, \
fmt::format(fmt_str, ##__VA_ARGS__).c_str()); \
} while (0)
#define ULOG_SET_STRIPPED_PREFIX_LEN(len) \ #define ULOG_SET_STRIPPED_PREFIX_LEN(len) \
::tqcq::Logger::GetInstance().SetStrippedPrefixLen(len) ::tqcq::Logger::GetInstance().SetStrippedPrefixLen(len)