Changeset View
Changeset View
Standalone View
Standalone View
src/logging.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | enum LogFlags : uint32_t { | ||||
PRUNE = (1 << 14), | PRUNE = (1 << 14), | ||||
PROXY = (1 << 15), | PROXY = (1 << 15), | ||||
MEMPOOLREJ = (1 << 16), | MEMPOOLREJ = (1 << 16), | ||||
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), | |||||
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 | ||||
mutable StdMutex m_cs; | mutable StdMutex m_cs; | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |