|
bux API Reference 1.12.3
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.
|
#include "SyncLog.h"#include "XPlatform.h"#include <format>#include <optional>#include <string_view>

Go to the source code of this file.
Classes | |
| class | bux::C_EntryLog |
| Log on both declaration point and end of block scope with an unique id. More... | |
Namespaces | |
| namespace | bux |
THE common namespace of bux library. | |
| namespace | bux::user |
Function prototypes declared in this subnamespace are required to be implemented by user so that functions declared under namespace bux in the same header can be linked properly without errors. | |
Macros | |
| #define | _gluePair_(x, y) |
| #define | SCOPELOG_(line, scope) |
| #define | SCOPELOGX_(line, scope, fmtStr, ...) |
| #define | DEF_LOGGER_HEAD_ namespace bux { namespace user { I_SyncLog &logger() { |
| #define | DEF_LOGGER_TAIL_(x) |
| #define | LOG(ll, fmtStr, ...) |
| #define | LOG_RAW(fmtStr, ...) |
| #define | LOGGER_USE_LOCAL_TIME_ true |
| #define | DEF_LOGGER_OSTREAM(out, ...) |
| #define | DEF_LOGGER_COUT(...) |
| #define | DEF_LOGGER_CERR(...) |
| #define | DEF_LOGGER_FILE(path, ...) |
| #define | DEF_LOGGER_FILES(pathfmt, ...) |
| #define | DEF_FALLBACK_LOGGER_FILES(fsize_in_bytes, fallbackPaths) |
| #define | DEF_PARA_LOGGER |
| #define | DEF_LOGGER_COUT(...) |
| #define | DEF_LOGGER_CERR(...) |
| #define | SCOPELOG(scope) |
| #define | SCOPELOGX(scope, fmtStr, ...) |
| #define | FUNLOG SCOPELOG(CUR_FUNC_) |
| #define | FUNLOGX(fmtStr, ...) |
| #define | LOG1(ll, str) |
| #define | SCOPELOGX1(scope, x) |
| #define | SCOPELOGX2(scope, x1, x2) |
| #define | SCOPELOGX3(scope, x1, x2, x3) |
| #define | SCOPELOGX4(scope, x1, x2, x3, x4) |
| #define | SCOPELOGX5(scope, x1, x2, x3, x4, x5) |
| #define | SCOPELOGX6(scope, x1, x2, x3, x4, x5, x6) |
| #define | SCOPELOGX7(scope, x1, x2, x3, x4, x5, x6, x7) |
| #define | SCOPELOGX8(scope, x1, x2, x3, x4, x5, x6, x7, x8) |
| #define | SCOPELOGX9(scope, x1, x2, x3, x4, x5, x6, x7, x8, x9) |
| #define | FUNLOGX1(x) |
| #define | FUNLOGX2(x1, x2) |
| #define | FUNLOGX3(x1, x2, x3) |
| #define | FUNLOGX4(x1, x2, x3, x4) |
| #define | FUNLOGX5(x1, x2, x3, x4, x5) |
| #define | FUNLOGX6(x1, x2, x3, x4, x5, x6) |
| #define | FUNLOGX7(x1, x2, x3, x4, x5, x6, x7) |
| #define | FUNLOGX8(x1, x2, x3, x4, x5, x6, x7, x8) |
| #define | FUNLOGX9(x1, x2, x3, x4, x5, x6, x7, x8, x9) |
Functions | |
| I_SyncLog & | bux::logger () |
| std::ostream & | bux::stamp (const C_UseLog &u, E_LogLevel level) |
| I_SyncLog & | bux::user::logger () |
| #define DEF_FALLBACK_LOGGER_FILES | ( | fsize_in_bytes, | |
| fallbackPaths ) |
| #define DEF_LOGGER_CERR | ( | ... | ) |
| #define DEF_LOGGER_CERR | ( | ... | ) |
| #define DEF_LOGGER_COUT | ( | ... | ) |
| #define DEF_LOGGER_COUT | ( | ... | ) |
| #define DEF_LOGGER_FILE | ( | path, | |
| ... ) |
| #define DEF_LOGGER_FILES | ( | pathfmt, | |
| ... ) |
| #define DEF_LOGGER_HEAD_ namespace bux { namespace user { I_SyncLog &logger() { |
| #define DEF_LOGGER_OSTREAM | ( | out, | |
| ... ) |
| #define DEF_LOGGER_TAIL_ | ( | x | ) |
| #define DEF_PARA_LOGGER |
| #define FUNLOGX | ( | fmtStr, | |
| ... ) |
| #define FUNLOGX1 | ( | x | ) |
| #define FUNLOGX2 | ( | x1, | |
| x2 ) |
| #define FUNLOGX3 | ( | x1, | |
| x2, | |||
| x3 ) |
| #define FUNLOGX4 | ( | x1, | |
| x2, | |||
| x3, | |||
| x4 ) |
| #define FUNLOGX5 | ( | x1, | |
| x2, | |||
| x3, | |||
| x4, | |||
| x5 ) |
| #define FUNLOGX6 | ( | x1, | |
| x2, | |||
| x3, | |||
| x4, | |||
| x5, | |||
| x6 ) |
| #define FUNLOGX7 | ( | x1, | |
| x2, | |||
| x3, | |||
| x4, | |||
| x5, | |||
| x6, | |||
| x7 ) |
| #define FUNLOGX8 | ( | x1, | |
| x2, | |||
| x3, | |||
| x4, | |||
| x5, | |||
| x6, | |||
| x7, | |||
| x8 ) |
| #define FUNLOGX9 | ( | x1, | |
| x2, | |||
| x3, | |||
| x4, | |||
| x5, | |||
| x6, | |||
| x7, | |||
| x8, | |||
| x9 ) |
| #define LOG | ( | ll, | |
| fmtStr, | |||
| ... ) |
| #define LOG1 | ( | ll, | |
| str ) |
| #define LOG_RAW | ( | fmtStr, | |
| ... ) |
| #define LOGGER_USE_LOCAL_TIME_ true |
Valid definitions: (#define before including this header)
| #define SCOPELOG | ( | scope | ) |
| #define SCOPELOG_ | ( | line, | |
| scope ) |
| #define SCOPELOGX | ( | scope, | |
| fmtStr, | |||
| ... ) |
| #define SCOPELOGX1 | ( | scope, | |
| x ) |
| #define SCOPELOGX2 | ( | scope, | |
| x1, | |||
| x2 ) |
| #define SCOPELOGX3 | ( | scope, | |
| x1, | |||
| x2, | |||
| x3 ) |
| #define SCOPELOGX4 | ( | scope, | |
| x1, | |||
| x2, | |||
| x3, | |||
| x4 ) |
| #define SCOPELOGX5 | ( | scope, | |
| x1, | |||
| x2, | |||
| x3, | |||
| x4, | |||
| x5 ) |
| #define SCOPELOGX6 | ( | scope, | |
| x1, | |||
| x2, | |||
| x3, | |||
| x4, | |||
| x5, | |||
| x6 ) |
| #define SCOPELOGX7 | ( | scope, | |
| x1, | |||
| x2, | |||
| x3, | |||
| x4, | |||
| x5, | |||
| x6, | |||
| x7 ) |
| #define SCOPELOGX8 | ( | scope, | |
| x1, | |||
| x2, | |||
| x3, | |||
| x4, | |||
| x5, | |||
| x6, | |||
| x7, | |||
| x8 ) |
| #define SCOPELOGX9 | ( | scope, | |
| x1, | |||
| x2, | |||
| x3, | |||
| x4, | |||
| x5, | |||
| x6, | |||
| x7, | |||
| x8, | |||
| x9 ) |
| #define SCOPELOGX_ | ( | line, | |
| scope, | |||
| fmtStr, | |||
| ... ) |