bux API Reference
1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
test/smoke_cerrlog.cpp
//#define LOGGER_USE_LOCAL_TIME_ std::chrono::get_tzdb().current_zone()
//#define LOGGER_USE_LOCAL_TIME_ std::chrono::get_tzdb().locate_zone("Asia/Taipei")
#include <
bux/Logger.h
>
// DEF_LOGGER_CERR()
#include <iostream>
// std::cerr
DEF_LOGGER_CERR
(LL_VERBOSE)
int
main()
{
std::cerr <<std::boolalpha <<
"LOGGER_USE_LOCAL_TIME_: "
<<
LOGGER_USE_LOCAL_TIME_
<<
"\n"
;
LOG_RAW
(
"Raw beginning"
);
LOG
(LL_FATAL,
"Hello fatal"
);
FUNLOG
;
LOG
(LL_ERROR,
"Hello error"
);
LOG
(LL_WARNING,
"Hello warning"
);
FUNLOGX
(
"Inner"
);
LOG
(LL_INFO,
"Hello info"
);
LOG
(LL_VERBOSE,
"Hello verbose"
);
LOG_RAW
(
"Raw ending"
);
}
Logger.h
FUNLOG
#define FUNLOG
Definition
Logger.h:142
FUNLOGX
#define FUNLOGX(fmtStr,...)
Definition
Logger.h:143
LOG_RAW
#define LOG_RAW(fmtStr,...)
Definition
Logger.h:79
LOGGER_USE_LOCAL_TIME_
#define LOGGER_USE_LOCAL_TIME_
Definition
Logger.h:84
DEF_LOGGER_CERR
#define DEF_LOGGER_CERR(...)
Definition
Logger.h:108
LOG
#define LOG(ll, fmtStr,...)
Definition
Logger.h:78
Generated by
1.12.0