Changeset View
Changeset View
Standalone View
Standalone View
src/logging.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | enum LogFlags : uint32_t { | ||||
LIBEVENT = (1 << 17), | LIBEVENT = (1 << 17), | ||||
COINDB = (1 << 18), | COINDB = (1 << 18), | ||||
QT = (1 << 19), | QT = (1 << 19), | ||||
LEVELDB = (1 << 20), | LEVELDB = (1 << 20), | ||||
VALIDATION = (1 << 21), | VALIDATION = (1 << 21), | ||||
AVALANCHE = (1 << 22), | AVALANCHE = (1 << 22), | ||||
I2P = (1 << 23), | I2P = (1 << 23), | ||||
CHRONIK = (1 << 24), | CHRONIK = (1 << 24), | ||||
#ifdef DEBUG_LOCKCONTENTION | |||||
LOCK = (1 << 25), | |||||
#endif | |||||
BLOCKSTORE = (1 << 26), | BLOCKSTORE = (1 << 26), | ||||
ALL = ~uint32_t(0), | ALL = ~uint32_t(0), | ||||
}; | }; | ||||
class Logger { | class Logger { | ||||
private: | private: | ||||
// Can not use Mutex from sync.h because in debug mode it would cause a | // Can not use Mutex from sync.h because in debug mode it would cause a | ||||
// deadlock when a potential deadlock was detected | // deadlock when a potential deadlock was detected | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |