Changeset View
Changeset View
Standalone View
Standalone View
src/logging.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | #define LogPrint(category, ...) \ | ||||
} while (0) | } while (0) | ||||
#define LogPrintf(...) \ | #define LogPrintf(...) \ | ||||
do { \ | do { \ | ||||
GetLogger().LogPrintStr(tfm::format(__VA_ARGS__)); \ | GetLogger().LogPrintStr(tfm::format(__VA_ARGS__)); \ | ||||
} while (0) | } while (0) | ||||
#endif | #endif | ||||
/** | |||||
* These are aliases used to explicitly state that the message should not end | |||||
* with a newline character. It allows for detecting the missing newlines that | |||||
* could make the logs hard to read. | |||||
*/ | |||||
#define LogPrintfToBeContinued LogPrintf | |||||
#define LogPrintToBeContinued LogPrint | |||||
#endif // BITCOIN_LOGGING_H | #endif // BITCOIN_LOGGING_H |