Bitcoin Core 32.99.0
P2P Digital Currency
Public Attributes | List of all members
btck_LogEntry Struct Reference

A log entry passed to the logging callback. More...

#include <bitcoinkernel.h>

Public Attributes

const char * message
 Log message text. More...
 
size_t message_len
 Length of message. More...
 
const char * thread_name
 Name of the thread that produced the log message. More...
 
size_t thread_name_len
 Length of thread_name. More...
 
int64_t timestamp_ns
 Wall-clock time when the entry was logged, in nanoseconds since the Unix epoch. More...
 
int64_t mocktime_s
 Mock time in effect when the entry was logged, in seconds since the Unix epoch, or 0 if no mock time is set (see btck_set_mock_time). More...
 
const char * file_name
 Name of the source file that produced the log statement. More...
 
size_t file_name_len
 Length of file_name. More...
 
const char * function_name
 Name of the function that produced the log message. More...
 
size_t function_name_len
 Length of function_name. More...
 
uint32_t line
 Line number of the source code that produced the log statement. More...
 
btck_LogLevel level
 Log severity level. More...
 
btck_LogCategory category
 Log category. More...
 

Detailed Description

A log entry passed to the logging callback.

String fields are not guaranteed to be null-terminated. Always use the accompanying *_len field to determine their length.

Definition at line 390 of file bitcoinkernel.h.

Member Data Documentation

◆ category

btck_LogCategory btck_LogEntry::category

Log category.

Definition at line 419 of file bitcoinkernel.h.

◆ file_name

const char* btck_LogEntry::file_name

Name of the source file that produced the log statement.

Definition at line 407 of file bitcoinkernel.h.

◆ file_name_len

size_t btck_LogEntry::file_name_len

Length of file_name.

Definition at line 409 of file bitcoinkernel.h.

◆ function_name

const char* btck_LogEntry::function_name

Name of the function that produced the log message.

Definition at line 411 of file bitcoinkernel.h.

◆ function_name_len

size_t btck_LogEntry::function_name_len

Length of function_name.

Definition at line 413 of file bitcoinkernel.h.

◆ level

btck_LogLevel btck_LogEntry::level

Log severity level.

Definition at line 417 of file bitcoinkernel.h.

◆ line

uint32_t btck_LogEntry::line

Line number of the source code that produced the log statement.

Definition at line 415 of file bitcoinkernel.h.

◆ message

const char* btck_LogEntry::message

Log message text.

Not escaped, so it may contain newlines and other control characters.

Definition at line 393 of file bitcoinkernel.h.

◆ message_len

size_t btck_LogEntry::message_len

Length of message.

Definition at line 395 of file bitcoinkernel.h.

◆ mocktime_s

int64_t btck_LogEntry::mocktime_s

Mock time in effect when the entry was logged, in seconds since the Unix epoch, or 0 if no mock time is set (see btck_set_mock_time).

Definition at line 405 of file bitcoinkernel.h.

◆ thread_name

const char* btck_LogEntry::thread_name

Name of the thread that produced the log message.

Definition at line 397 of file bitcoinkernel.h.

◆ thread_name_len

size_t btck_LogEntry::thread_name_len

Length of thread_name.

Definition at line 399 of file bitcoinkernel.h.

◆ timestamp_ns

int64_t btck_LogEntry::timestamp_ns

Wall-clock time when the entry was logged, in nanoseconds since the Unix epoch.

Definition at line 402 of file bitcoinkernel.h.


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