Bitcoin Core 32.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
btck::LogEntry Class Reference

Non-owning view over a btck_LogEntry. More...

#include <bitcoinkernel_wrapper.h>

Collaboration diagram for btck::LogEntry:
[legend]

Public Member Functions

 LogEntry (const btck_LogEntry &entry)
 
std::string_view Message () const
 
std::string_view ThreadName () const
 
std::chrono::sys_time< std::chrono::nanoseconds > Timestamp () const
 
std::optional< std::chrono::sys_seconds > MockTime () const
 
std::string_view FileName () const
 
std::string_view FunctionName () const
 
uint32_t Line () const
 
LogLevel Level () const
 
LogCategory Category () const
 

Private Attributes

const btck_LogEntry * m_entry
 

Detailed Description

Non-owning view over a btck_LogEntry.

The referenced entry is only valid for the duration of the logging callback, so a LogEntry (and any string_view obtained from it) must not be stored or used after the callback returns.

Definition at line 1031 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ LogEntry()

btck::LogEntry::LogEntry ( const btck_LogEntry &  entry)
inlineexplicit

Definition at line 1037 of file bitcoinkernel_wrapper.h.

Member Function Documentation

◆ Category()

LogCategory btck::LogEntry::Category ( ) const
inline

Definition at line 1054 of file bitcoinkernel_wrapper.h.

Here is the caller graph for this function:

◆ FileName()

std::string_view btck::LogEntry::FileName ( ) const
inline

Definition at line 1050 of file bitcoinkernel_wrapper.h.

◆ FunctionName()

std::string_view btck::LogEntry::FunctionName ( ) const
inline

Definition at line 1051 of file bitcoinkernel_wrapper.h.

◆ Level()

LogLevel btck::LogEntry::Level ( ) const
inline

Definition at line 1053 of file bitcoinkernel_wrapper.h.

Here is the caller graph for this function:

◆ Line()

uint32_t btck::LogEntry::Line ( ) const
inline

Definition at line 1052 of file bitcoinkernel_wrapper.h.

◆ Message()

std::string_view btck::LogEntry::Message ( ) const
inline

Definition at line 1039 of file bitcoinkernel_wrapper.h.

Here is the caller graph for this function:

◆ MockTime()

std::optional< std::chrono::sys_seconds > btck::LogEntry::MockTime ( ) const
inline

Definition at line 1045 of file bitcoinkernel_wrapper.h.

◆ ThreadName()

std::string_view btck::LogEntry::ThreadName ( ) const
inline

Definition at line 1040 of file bitcoinkernel_wrapper.h.

◆ Timestamp()

std::chrono::sys_time< std::chrono::nanoseconds > btck::LogEntry::Timestamp ( ) const
inline

Definition at line 1041 of file bitcoinkernel_wrapper.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_entry

const btck_LogEntry* btck::LogEntry::m_entry
private

Definition at line 1034 of file bitcoinkernel_wrapper.h.


The documentation for this class was generated from the following file: