|
Definition in file ezlogger_macros.hpp.
Go to the source code of this file.
Logging macros that implement in both debug and release version, and use default verbosity level | |
#define | EZLOGGER axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__) |
A macro used to log 1, 2, or 3 arguments. | |
#define | EZLOGGERSTREAM axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, axter::log_default_verbosity_level, true) |
A macro use for logging with iostream type syntax. | |
#define | EZLOGGERSTREAM2(alterante_stream) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, axter::log_default_verbosity_level, true, &alterante_stream) |
A macro to use an alternate output stream. | |
#define | EZLOGGERPRINT axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__).cprint |
A macro use for logging with C-Style printf syntax. | |
#define | EZLOGGERVARIFY(x) assert(axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, axter::log_default_verbosity_level).log_if_fails_verification((x), #x)) |
A macro that logs failed verifications and asserts. | |
#define | EZLOGGERVAR(x) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__)(axter::ezlogger<>::to_str(#x) + axter::ezlogger<>::to_str(" = '") + axter::ezlogger<>::to_str(x) + axter::ezlogger<>::to_str("'")), x |
An easy to use macro to log both variable name and value. | |
#define | EZLOGGERMARKER axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__)("marker") |
The EZLOGGERMARKER macro is used as a maker for condition logic. | |
#define | EZLOGGERFUNCTRACKER axter::ezfunction_tracker my_function_tracker##__LINE__(__FILE__, __LINE__, __FUNCTION__) |
The EZLOGGERFUNCTRACKER macro is used to trace the entering and exiting of a function. | |
#define | EZLOGGERDISPLAY_STACK axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__).display_stack(); |
The EZLOGGERDISPLAY_STACK macro is use to display the current stack. Only functions that have used the EZLOGGERFUNCTRACKER or associated xxxxFUNCTRACKER macro are included in the stack. | |
#define | EZLOGGER_PRG_MAIN_ARG(argc, argv) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__).prg_main_arg(argc, argv) |
The EZLOGGER_PRG_MAIN_ARG macro is used to log the program's input parameters. | |
Verbosity level logging macros, which implement in both debug and release version | |
#define | EZLOGGERVL(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level) |
A macro used to log 1, 2, or 3 arguments. | |
#define | EZLOGGERVLSTREAM(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level, true) |
A macro use for logging with iostream type syntax. | |
#define | EZLOGGERVLSTREAM2(verbosity_level, alterante_stream) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level, true, &alterante_stream) |
A macro to use an alternate output stream. | |
#define | EZLOGGERVLPRINT(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level).cprint |
A macro use for logging with C-Style printf syntax. | |
#define | EZLOGGERVLVARIFY(verbosity_level, x) assert(axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level).log_if_fails_verification((x), #x)) |
A macro that logs failed verifications and asserts. | |
#define | EZLOGGERVLVAR(verbosity_level, x) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level)(axter::ezlogger<>::to_str(#x) + axter::ezlogger<>::to_str(" = '") + axter::ezlogger<>::to_str(x) + axter::ezlogger<>::to_str("'")),x |
An easy to use macro to log both variable name and value. | |
#define | EZLOGGERVLMARKER(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level)("marker") |
The EZLOGGERVLMARKER macro is used as a maker for condition logic. | |
#define | EZLOGGERVLFUNCTRACKER(verbosity_level) axter::ezfunction_tracker my_function_tracker##__LINE__(__FILE__, __LINE__, __FUNCTION__, verbosity_level) |
The EZLOGGERVLFUNCTRACKER macro is used to trace the entering and exiting of a function. | |
#define | EZLOGGERVLDISPLAY_STACK(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level).display_stack(); |
The EZLOGGERVLDISPLAY_STACK macro is use to display the current stack. Only functions that have used the EZLOGGERFUNCTRACKER or associated xxxxFUNCTRACKER macro are included in the stack. | |
#define | EZLOGGERVL_PRG_MAIN_ARG(verbosity_level, argc, argv) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level).prg_main_arg(argc, argv) |
The EZLOGGERVL_PRG_MAIN_ARG macro is used to log the program's input parameters. | |
Logging macros that only implement in debug version, and use default verbosity level | |
#define | EZDBGONLYLOGGER axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__) |
A macro used to log 1, 2, or 3 arguments. | |
#define | EZDBGONLYLOGGERSTREAM axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, axter::log_default_verbosity_level, true) |
A macro use for logging with iostream type syntax. | |
#define | EZDBGONLYLOGGERSTREAM2(alterante_stream) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, axter::log_default_verbosity_level, true, &alterante_stream) |
A macro to use an alternate output stream. | |
#define | EZDBGONLYLOGGERPRINT axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__).cprint |
A macro use for logging with C-Style printf syntax. | |
#define | EZDBGONLYLOGGERVAR(x) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__)(axter::ezlogger<>::to_str(#x) + axter::ezlogger<>::to_str(" = '") + axter::ezlogger<>::to_str(x) + axter::ezlogger<>::to_str("'")) |
An easy to use macro to log both variable name and value. | |
#define | EZDBGONLYLOGGERMARKER axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__)("marker") |
The EZDBGONLYLOGGERMARKER macro is used as a maker for condition logic. | |
#define | EZDBGONLYLOGGERFUNCTRACKER axter::ezfunction_tracker my_function_tracker##__LINE__(__FILE__, __LINE__, __FUNCTION__) |
The EZDBGONLYLOGGERFUNCTRACKER macro is used to trace the entering and exiting of a function. | |
#define | EZDBGONLYLOGGERDISPLAY_STACK axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__).display_stack(); |
The EZDBGONLYLOGGERDISPLAY_STACK macro is use to display the current stack. Only functions that have used the EZLOGGERFUNCTRACKER or associated xxxxFUNCTRACKER macro are included in the stack. | |
#define | EZDBGONLYLOGGER_PRG_MAIN_ARG(argc, argv) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__).prg_main_arg(argc, argv) |
The EZDBGONLYLOGGER_PRG_MAIN_ARG macro is used to log the program's input parameters. | |
Verbosity level logging macros, which implement ONLY in debug version | |
#define | EZDBGONLYLOGGERVL(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level) |
A macro used to log 1, 2, or 3 arguments. | |
#define | EZDBGONLYLOGGERVLSTREAM(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level, true) |
A macro use for logging with iostream type syntax. | |
#define | EZDBGONLYLOGGERVLSTREAM2(verbosity_level, alterante_stream) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level, true, &alterante_stream) |
A macro to use an alternate output stream. | |
#define | EZDBGONLYLOGGERVLPRINT(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level).cprint |
A macro use for logging with C-Style printf syntax. | |
#define | EZDBGONLYLOGGERVLVAR(verbosity_level, x) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level)(axter::ezlogger<>::to_str(#x) + axter::ezlogger<>::to_str(" = '") + axter::ezlogger<>::to_str(x) + axter::ezlogger<>::to_str("'")),x |
An easy to use macro to log both variable name and value. | |
#define | EZDBGONLYLOGGERVLMARKER(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level)("marker") |
The EZDBGONLYLOGGERVLMARKER macro is used as a maker for condition logic. | |
#define | EZDBGONLYLOGGERVLFUNCTRACKER(verbosity_level) axter::ezfunction_tracker my_function_tracker##__LINE__(__FILE__, __LINE__, __FUNCTION__, verbosity_level) |
The EZDBGONLYLOGGERVLFUNCTRACKER macro is used to trace the entering and exiting of a function. | |
#define | EZDBGONLYLOGGERVLDISPLAY_STACK(verbosity_level) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level).display_stack(); |
The EZDBGONLYLOGGERVLDISPLAY_STACK macro is use to display the current stack. Only functions that have used the EZLOGGERFUNCTRACKER or associated xxxxFUNCTRACKER macro are included in the stack. | |
#define | EZDBGONLYLOGGERVL_PRG_MAIN_ARG(verbosity_level, argc, argv) axter::ezlogger<>(__FILE__, __LINE__, __FUNCTION__, verbosity_level).prg_main_arg(argc, argv) |
The EZDBGONLYLOGGERVL_PRG_MAIN_ARG macro is used to log the program's input parameters. | |
Defines | |
#define | EZLOGGER_IMPLEMENT_DEBUGLOGGING |
This macro is defined if _DEBUG or _DEBUG_ is defined. | |
#define | __FUNCTION__ "" |
The __FUNCTION_ macro is defined by some implementations. |
|
The __FUNCTION_ macro is defined by some implementations.
DescriptionThe __FUNCTION_ is supported by some compilers like VC++ 7.x, 8.x and GNU 3.x, 4.x. Compilers that support this macro replace the macro with the function name calling the macro. By default, for compilers that do not support this macro, __FUNCTION__ is replaced with an empty string by EzLogger.For non-supporting compilers, optionally, the developer could choose to define this macro to a common name used in functions to declare a local variable with the name of the function. #define __FUNCTION__ function_name #include "ezlogger.hpp" void Myfunction() { const char* function_name = "Myfunction"; } |
|
A macro used to log 1, 2, or 3 arguments.
Example UsageEZDBGONLYLOGGER(MyStr); EZDBGONLYLOGGER(a, b); EZDBGONLYLOGGER(a, b, c); Definition at line 406 of file ezlogger_macros.hpp. |
|
The EZDBGONLYLOGGER_PRG_MAIN_ARG macro is used to log the program's input parameters.
Example Usageint main(int argc, char**argv) { EZDBGONLYLOGGER_PRG_MAIN_ARG(argc, argv); Definition at line 508 of file ezlogger_macros.hpp. |
|
The EZDBGONLYLOGGERDISPLAY_STACK macro is use to display the current stack. Only functions that have used the EZLOGGERFUNCTRACKER or associated xxxxFUNCTRACKER macro are included in the stack.
Example Usagevoid FunctFoo() { EZLOGGERFUNCTRACKER; EZDBGONLYLOGGERDISPLAY_STACK; //Display includes current function }
Definition at line 497 of file ezlogger_macros.hpp. |
|
The EZDBGONLYLOGGERFUNCTRACKER macro is used to trace the entering and exiting of a function.
Example UsageEZDBGONLYLOGGERFUNCTRACKER; void FunctFoo() { EZDBGONLYLOGGERFUNCTRACKER; //Function Foo code here.... }
Definition at line 479 of file ezlogger_macros.hpp. |
|
The EZDBGONLYLOGGERMARKER macro is used as a maker for condition logic.
Example UsageEZDBGONLYLOGGERMARKER; Definition at line 461 of file ezlogger_macros.hpp. |
|
A macro use for logging with C-Style printf syntax.
Example UsageEZDBGONLYLOGGERPRINT("i = %i and somedata = %s", i, somedata.c_str()); Definition at line 436 of file ezlogger_macros.hpp. |
|
A macro use for logging with iostream type syntax.
Example UsageEZDBGONLYLOGGERSTREAM << "This is data1 " << data1 << "This is data2 " << data2 << std::endl; Definition at line 415 of file ezlogger_macros.hpp. |
|
A macro to use an alternate output stream.
Example UsageEZDBGONLYLOGGERSTREAM2(std::cout) << "This is data1 " << data1 << "This is data2 " << data2 << std::endl;
Definition at line 427 of file ezlogger_macros.hpp. |
|
An easy to use macro to log both variable name and value.
Example UsageEZDBGONLYLOGGERVAR(somevariable); bool SomeConditionVar = true; EZDBGONLYLOGGERVAR(SomeConditionVar == false); Definition at line 450 of file ezlogger_macros.hpp. |
|
A macro used to log 1, 2, or 3 arguments.
Example UsageEZDBGONLYLOGGERVL(axter::log_often)(MyStr); EZDBGONLYLOGGERVL(axter::log_rarely)(a, b); EZDBGONLYLOGGERVL(axter::log_very_rarely)(a, b, c);
Definition at line 529 of file ezlogger_macros.hpp. |
|
The EZDBGONLYLOGGERVL_PRG_MAIN_ARG macro is used to log the program's input parameters.
Example Usageint main(int argc, char**argv) { EZDBGONLYLOGGERVL_PRG_MAIN_ARG(axter::log_always, argc, argv);
Definition at line 627 of file ezlogger_macros.hpp. |
|
The EZDBGONLYLOGGERVLDISPLAY_STACK macro is use to display the current stack. Only functions that have used the EZLOGGERFUNCTRACKER or associated xxxxFUNCTRACKER macro are included in the stack.
Example Usagevoid FunctFoo() { EZDBGONLYLOGGERVLFUNCTRACKER(axter::log_often); EZDBGONLYLOGGERVLDISPLAY_STACK(axter::log_often); //Display includes current function }
Definition at line 615 of file ezlogger_macros.hpp. |
|
The EZDBGONLYLOGGERVLFUNCTRACKER macro is used to trace the entering and exiting of a function.
Example Usagevoid FunctFoo() { EZDBGONLYLOGGERVLFUNCTRACKER(axter::log_often); //Function Foo code here.... }
Definition at line 600 of file ezlogger_macros.hpp. |
|
The EZDBGONLYLOGGERVLMARKER macro is used as a maker for condition logic.
Example UsageEZDBGONLYLOGGERVLMARKER(axter::log_often); Definition at line 586 of file ezlogger_macros.hpp. |
|
A macro use for logging with C-Style printf syntax.
Example UsageEZDBGONLYLOGGERVLPRINT(axter::log_often)("i = %i and somedata = %s", i, somedata.c_str()); Definition at line 559 of file ezlogger_macros.hpp. |
|
A macro use for logging with iostream type syntax.
Example UsageEZDBGONLYLOGGERVLSTREAM(axter::log_rarely) << "This is data1 " << data1 << "This is data2 " << data2 << std::endl; Definition at line 539 of file ezlogger_macros.hpp. |
|
A macro to use an alternate output stream.
Example UsageEZDBGONLYLOGGERVLSTREAM2(axter::log_rarely, std::cerr) << "This is data1 " << data1 << "This is data2 " << data2 << std::endl; Definition at line 549 of file ezlogger_macros.hpp. |
|
An easy to use macro to log both variable name and value.
Example UsageEZDBGONLYLOGGERVLVAR(axter::log_often, somevariable); bool SomeConditionVar = true; EZDBGONLYLOGGERVLVAR(axter::log_always, SomeConditionVar == false); Definition at line 574 of file ezlogger_macros.hpp. |
|
A macro used to log 1, 2, or 3 arguments.
Example UsageEZLOGGER(MyStr); EZLOGGER(a, b); EZLOGGER(a, b, c);
Definition at line 74 of file ezlogger_macros.hpp. |
|
This macro is defined if _DEBUG or _DEBUG_ is defined.
Definition at line 20 of file ezlogger_macros.hpp. |
|
The EZLOGGER_PRG_MAIN_ARG macro is used to log the program's input parameters.
Example Usageint main(int argc, char**argv) { EZLOGGER_PRG_MAIN_ARG(argc, argv);
Definition at line 215 of file ezlogger_macros.hpp. |
|
The EZLOGGERDISPLAY_STACK macro is use to display the current stack. Only functions that have used the EZLOGGERFUNCTRACKER or associated xxxxFUNCTRACKER macro are included in the stack.
Example Usagevoid FunctFoo() { EZLOGGERFUNCTRACKER; EZLOGGERDISPLAY_STACK; //Display includes current function }
Definition at line 200 of file ezlogger_macros.hpp. |
|
The EZLOGGERFUNCTRACKER macro is used to trace the entering and exiting of a function.
Example Usagevoid FunctFoo() { EZLOGGERFUNCTRACKER; //Function Foo code here.... }
Definition at line 182 of file ezlogger_macros.hpp. |
|
The EZLOGGERMARKER macro is used as a maker for condition logic.
Example UsageEZLOGGERMARKER;
Definition at line 165 of file ezlogger_macros.hpp. |
|
A macro use for logging with C-Style printf syntax.
Example UsageEZLOGGERPRINT("i = %i and somedata = %s", i, somedata.c_str());
Definition at line 113 of file ezlogger_macros.hpp. |
|
A macro use for logging with iostream type syntax.
Example UsageEZLOGGERSTREAM << "This is data1 " << data1 << "This is data2 " << data2 << std::endl;
Definition at line 87 of file ezlogger_macros.hpp. |
|
A macro to use an alternate output stream.
Example UsageEZLOGGERSTREAM2(std::cout) << "This is data1 " << data1 << "This is data2 " << data2 << std::endl;
Definition at line 100 of file ezlogger_macros.hpp. |
|
An easy to use macro to log both variable name and value.
Example UsageEZLOGGERVAR(somevariable); bool SomeConditionVar = true; EZLOGGERVAR(SomeConditionVar == false);
Definition at line 150 of file ezlogger_macros.hpp. |
|
A macro that logs failed verifications and asserts.
Example Usagebool SomeConditionVar = true; EZLOGGERVARIFY(SomeConditionVar == false);
Definition at line 129 of file ezlogger_macros.hpp. |
|
A macro used to log 1, 2, or 3 arguments.
Example UsageEZLOGGERVL(axter::log_often)(MyStr); EZLOGGERVL(axter::log_rarely)(a, b); EZLOGGERVL(axter::log_very_rarely)(a, b, c);
Definition at line 238 of file ezlogger_macros.hpp. |
|
The EZLOGGERVL_PRG_MAIN_ARG macro is used to log the program's input parameters.
Example Usageint main(int argc, char**argv) { EZLOGGERVL_PRG_MAIN_ARG(axter::log_always, argc, argv);
Definition at line 379 of file ezlogger_macros.hpp. |
|
The EZLOGGERVLDISPLAY_STACK macro is use to display the current stack. Only functions that have used the EZLOGGERFUNCTRACKER or associated xxxxFUNCTRACKER macro are included in the stack.
Example Usagevoid FunctFoo() { EZLOGGERVLFUNCTRACKER(axter::log_often); EZLOGGERVLDISPLAY_STACK(axter::log_often); //Display includes current function }
Definition at line 364 of file ezlogger_macros.hpp. |
|
The EZLOGGERVLFUNCTRACKER macro is used to trace the entering and exiting of a function.
Example Usagevoid FunctFoo() { EZLOGGERVLFUNCTRACKER(axter::log_often); //Function Foo code here.... }
Definition at line 346 of file ezlogger_macros.hpp. |
|
The EZLOGGERVLMARKER macro is used as a maker for condition logic.
Example UsageEZLOGGERVLMARKER(axter::log_often);
Definition at line 329 of file ezlogger_macros.hpp. |
|
A macro use for logging with C-Style printf syntax.
Example UsageEZLOGGERVLPRINT(axter::log_often)("i = %i and somedata = %s", i, somedata.c_str());
Definition at line 277 of file ezlogger_macros.hpp. |
|
A macro use for logging with iostream type syntax.
Example UsageEZLOGGERVLSTREAM(axter::log_rarely) << "This is data1 " << data1 << "This is data2 " << data2 << std::endl;
Definition at line 251 of file ezlogger_macros.hpp. |
|
A macro to use an alternate output stream.
Example UsageEZLOGGERVLSTREAM2(axter::log_rarely, std::cerr) << "This is data1 " << data1 << "This is data2 " << data2 << std::endl;
Definition at line 264 of file ezlogger_macros.hpp. |
|
An easy to use macro to log both variable name and value.
Example UsageEZLOGGERVLVAR(axter::log_often, somevariable); bool SomeConditionVar = true; EZLOGGERVLVAR(axter::log_always, SomeConditionVar == false);
Definition at line 314 of file ezlogger_macros.hpp. |
|
A macro that logs failed verifications and asserts.
Example Usagebool SomeConditionVar = true; EZLOGGERVLVARIFY(axter::log_always, SomeConditionVar == false);
Definition at line 293 of file ezlogger_macros.hpp. |