Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | List of all members
btck::LogEntry Class Reference

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

#include <bitcoinkernel_wrapper.h>

Inheritance diagram for btck::LogEntry:
[legend]
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
 
- Public Member Functions inherited from btck::View< btck_LogEntry >
 View (const btck_LogEntry *ptr)
 
const btck_LogEntry * get () const
 

Additional Inherited Members

- Protected Attributes inherited from btck::View< btck_LogEntry >
const btck_LogEntry * m_ptr
 

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 1036 of file bitcoinkernel_wrapper.h.

Constructor & Destructor Documentation

◆ LogEntry()

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

Definition at line 1039 of file bitcoinkernel_wrapper.h.

Member Function Documentation

◆ Category()

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

Definition at line 1057 of file bitcoinkernel_wrapper.h.

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

◆ FileName()

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

Definition at line 1053 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ FunctionName()

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

Definition at line 1054 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ Level()

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

Definition at line 1056 of file bitcoinkernel_wrapper.h.

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

◆ Line()

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

Definition at line 1055 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ Message()

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

Definition at line 1041 of file bitcoinkernel_wrapper.h.

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

◆ MockTime()

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

Definition at line 1047 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ ThreadName()

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

Definition at line 1042 of file bitcoinkernel_wrapper.h.

Here is the call graph for this function:

◆ Timestamp()

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

Definition at line 1043 of file bitcoinkernel_wrapper.h.

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

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