Bitcoin Core 30.99.0
P2P Digital Currency
Classes | Typedefs | Enumerations | Functions
util::log Namespace Reference

Classes

struct  Entry
 

Typedefs

using Category = uint64_t
 Opaque to util::log; interpreted by consumers (e.g., BCLog::LogFlags). More...
 

Enumerations

enum class  Level {
  Trace = 0 , Debug , Info , Warning ,
  Error
}
 

Functions

bool ShouldLog (Category category, Level level)
 Return whether messages with specified category and level should be logged. More...
 
void Log (Entry entry)
 Send message to be logged. More...
 

Typedef Documentation

◆ Category

using util::log::Category = typedef uint64_t

Opaque to util::log; interpreted by consumers (e.g., BCLog::LogFlags).

Definition at line 39 of file log.h.

Enumeration Type Documentation

◆ Level

enum class util::log::Level
strong
Enumerator
Trace 
Debug 
Info 
Warning 
Error 

Definition at line 41 of file log.h.

Function Documentation

◆ Log()

void util::log::Log ( Entry  entry)

Send message to be logged.

Applications using the logging library need to provide this.

Definition at line 611 of file logging.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShouldLog()

bool util::log::ShouldLog ( Category  category,
Level  level 
)

Return whether messages with specified category and level should be logged.

Applications using the logging library need to provide this.

Definition at line 606 of file logging.cpp.

Here is the call graph for this function: