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_filelog.cpp
//#define LOGGER_USE_LOCAL_TIME_ false
#include <bux/Logger.h> // DEF_LOGGER_FILE()
#include <fstream> // std::ofstream
DEF_LOGGER_FILE("log/test.log", LL_INFO)
int main()
{
*u <<std::boolalpha <<"LOGGER_USE_LOCAL_TIME_: " <<LOGGER_USE_LOCAL_TIME_ <<"\n";
LOG(LL_FATAL, "Hello fatal");
LOG(LL_ERROR, "Hello error");
LOG(LL_WARNING, "Hello warning");
FUNLOGX("Inner");
LOG(LL_INFO, "Hello info");
LOG(LL_VERBOSE, "Hello verbose");
}
#define FUNLOG
Definition Logger.h:142
#define FUNLOGX(fmtStr,...)
Definition Logger.h:143
#define LOGGER_USE_LOCAL_TIME_
Definition Logger.h:84
#define LOG(ll, fmtStr,...)
Definition Logger.h:78
#define DEF_LOGGER_FILE(path,...)
Definition Logger.h:111
I_SyncLog & logger()
Definition Logger.cpp:20