![]() |
Bitcoin Core
26.1.0
P2P Digital Currency
|
Classes | |
| class | Logger |
| class | Timer |
| RAII-style object that outputs timing information to logs. More... | |
Enumerations | |
| enum | LogFlags : uint32_t { NONE = 0, NET = (1 << 0), TOR = (1 << 1), MEMPOOL = (1 << 2), HTTP = (1 << 3), BENCH = (1 << 4), ZMQ = (1 << 5), WALLETDB = (1 << 6), RPC = (1 << 7), ESTIMATEFEE = (1 << 8), ADDRMAN = (1 << 9), SELECTCOINS = (1 << 10), REINDEX = (1 << 11), CMPCTBLOCK = (1 << 12), RAND = (1 << 13), PRUNE = (1 << 14), PROXY = (1 << 15), MEMPOOLREJ = (1 << 16), LIBEVENT = (1 << 17), COINDB = (1 << 18), QT = (1 << 19), LEVELDB = (1 << 20), VALIDATION = (1 << 21), I2P = (1 << 22), IPC = (1 << 23), UTIL = (1 << 25), BLOCKSTORAGE = (1 << 26), TXRECONCILIATION = (1 << 27), SCAN = (1 << 28), TXPACKAGES = (1 << 29), ALL = ~(uint32_t)0 } |
| enum | Level { Level::Trace = 0, Level::Debug, Level::Info, Level::Warning, Level::Error, Level::None } |
Functions | |
| std::string | LogEscapeMessage (const std::string &str) |
| Belts and suspenders: make sure outgoing log messages don't contain potentially suspicious characters, such as terminal control codes. More... | |
Variables | |
| constexpr auto | DEFAULT_LOG_LEVEL {Level::Debug} |
|
strong |
| enum BCLog::LogFlags : uint32_t |
| std::string BCLog::LogEscapeMessage | ( | const std::string & | str | ) |
Belts and suspenders: make sure outgoing log messages don't contain potentially suspicious characters, such as terminal control codes.
This escapes control characters except newline ('
') in C syntax. It escapes instead of removes them to still allow for troubleshooting issues where they accidentally end up in strings.
Definition at line 381 of file logging.cpp.
| constexpr auto BCLog::DEFAULT_LOG_LEVEL {Level::Debug} |
1.8.14