bux API Reference 1.11.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_coutlog.cpp
//#define TURN_OFF_LOGGER_
#include <bux/Logger.h> // DEF_LOGGER_COUT()
#include <iostream> // std::cout
//DEF_LOGGER_COUT(LL_WARNING)
void fun9()
{
FUNLOGX9('1','2','3','4','5','6','7','8','9');
LOG1(LL_INFO, "End of indentation");
}
void fun8()
{
FUNLOGX8('1','2','3','4','5','6','7','8');
fun9();
}
void fun7()
{
FUNLOGX7('1','2','3','4','5','6','7');
fun8();
}
void fun6()
{
FUNLOGX6('1','2','3','4','5','6');
fun7();
}
void fun5()
{
FUNLOGX5('1','2','3','4','5');
fun6();
}
void fun4()
{
FUNLOGX4('1','2','3','4');
fun5();
}
void fun3()
{
FUNLOGX3('1','2','3');
fun4();
}
void fun2()
{
FUNLOGX2('1','2');
fun3();
}
void fun1()
{
FUNLOGX1('1');
fun2();
}
int main()
{
LOG(LL_FATAL, "Hello fatal");
LOG(LL_ERROR, "Hello error");
FUNLOGX("Outer");
LOG(LL_WARNING, "Hello warning");
LOG(LL_INFO, "Hello info");
LOG(LL_VERBOSE, "Hello verbose");
//---------------------------------
LOG1(LL_INFO, "{}");
//---------------------------------
SCOPELOGX1("Indent", 1);
SCOPELOGX2("Indent", 1, 2);
SCOPELOGX3("Indent", 1, 2, 3);
SCOPELOGX4("Indent", 1, 2, 3, 4);
SCOPELOGX5("Indent", 1, 2, 3, 4, 5);
SCOPELOGX6("Indent", 1, 2, 3, 4, 5, 6);
SCOPELOGX7("Indent", 1, 2, 3, 4, 5, 6, 7);
SCOPELOGX8("Indent", 1, 2, 3, 4, 5, 6, 7, 8);
SCOPELOGX9("Indent", 1, 2, 3, 4, 5, 6, 7, 8, 9);
fun1();
}
@ LL_WARNING
Situation that should be warned but should not have sabotaged anything already.
Definition LogLevel.h:12
@ LL_ERROR
Error not serious enough that the program can continue to run.
Definition LogLevel.h:11
@ LL_INFO
Information worth mentioning about the current status, be it normal or abnormal.
Definition LogLevel.h:13
@ LL_VERBOSE
More detailed or advanced information probably considered too much by some.
Definition LogLevel.h:14
@ LL_FATAL
Error serious enough that the program should shut down immediately after reporting this.
Definition LogLevel.h:10
#define SCOPELOGX7(scope, x1, x2, x3, x4, x5, x6, x7)
Definition Logger.h:166
#define FUNLOGX5(x1, x2, x3, x4, x5)
Definition Logger.h:174
#define FUNLOG
Definition Logger.h:155
#define FUNLOGX6(x1, x2, x3, x4, x5, x6)
Definition Logger.h:175
#define FUNLOGX4(x1, x2, x3, x4)
Definition Logger.h:173
#define SCOPELOGX6(scope, x1, x2, x3, x4, x5, x6)
Definition Logger.h:165
#define FUNLOGX8(x1, x2, x3, x4, x5, x6, x7, x8)
Definition Logger.h:177
#define SCOPELOGX9(scope, x1, x2, x3, x4, x5, x6, x7, x8, x9)
Definition Logger.h:168
#define SCOPELOGX3(scope, x1, x2, x3)
Definition Logger.h:162
#define FUNLOGX(fmtStr,...)
Definition Logger.h:156
#define SCOPELOGX8(scope, x1, x2, x3, x4, x5, x6, x7, x8)
Definition Logger.h:167
#define FUNLOGX1(x)
Definition Logger.h:170
#define SCOPELOGX5(scope, x1, x2, x3, x4, x5)
Definition Logger.h:164
#define SCOPELOGX2(scope, x1, x2)
Definition Logger.h:161
#define LOG1(ll, str)
Definition Logger.h:158
#define SCOPELOGX4(scope, x1, x2, x3, x4)
Definition Logger.h:163
#define FUNLOGX2(x1, x2)
Definition Logger.h:171
#define DEF_LOGGER_COUT(...)
Definition Logger.h:103
#define LOG(ll, fmtStr,...)
Definition Logger.h:76
#define SCOPELOGX1(scope, x)
Definition Logger.h:160
#define FUNLOGX9(x1, x2, x3, x4, x5, x6, x7, x8, x9)
Definition Logger.h:178
#define FUNLOGX3(x1, x2, x3)
Definition Logger.h:172
#define FUNLOGX7(x1, x2, x3, x4, x5, x6, x7)
Definition Logger.h:176