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
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:
parent
e2e8fa3e6d
commit
c1dbc8194e
@ -18,12 +18,13 @@ namespace tqcq {
|
||||
std::string __fmt_str; \
|
||||
try { \
|
||||
__fmt_str = fmt::format(fmt_str, ##__VA_ARGS__); \
|
||||
catch (const std::exception &e) { __fmt_str = e.what(); } \
|
||||
tqcq::Logger::GetInstance().Log( \
|
||||
level, __FILE__, __FUNCTION__, __LINE__, tag, \
|
||||
fmt::format(fmt_str, ##__VA_ARGS__).c_str()); \
|
||||
} catch (const std::exception &e) { \
|
||||
__fmt_str = e.what(); \
|
||||
} \
|
||||
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) \
|
||||
::tqcq::Logger::GetInstance().SetStrippedPrefixLen(len)
|
||||
|
Loading…
Reference in New Issue
Block a user