#include <logging.h>
◆ DefaultShrinkDebugFile()
bool BCLog::Logger::DefaultShrinkDebugFile |
( |
| ) |
const |
◆ DisableCategory() [1/2]
◆ DisableCategory() [2/2]
bool BCLog::Logger::DisableCategory |
( |
const std::string & |
str | ) |
|
◆ DisconnectTestLogger()
void BCLog::Logger::DisconnectTestLogger |
( |
| ) |
|
◆ EnableCategory() [1/2]
◆ EnableCategory() [2/2]
bool BCLog::Logger::EnableCategory |
( |
const std::string & |
str | ) |
|
◆ Enabled()
bool BCLog::Logger::Enabled |
( |
| ) |
const |
|
inline |
Returns whether logs will be written to any output
◆ GetCategoryMask()
uint32_t BCLog::Logger::GetCategoryMask |
( |
| ) |
const |
|
inline |
◆ LogPrintStr()
void BCLog::Logger::LogPrintStr |
( |
const std::string & |
str | ) |
|
Send a string to the log output
◆ LogTimestampStr()
std::string BCLog::Logger::LogTimestampStr |
( |
const std::string & |
str | ) |
|
|
private |
◆ ShrinkDebugFile()
void BCLog::Logger::ShrinkDebugFile |
( |
| ) |
|
◆ StartLogging()
bool BCLog::Logger::StartLogging |
( |
| ) |
|
Start logging (and flush all buffered messages)
◆ WillLogCategory()
◆ m_buffering
bool BCLog::Logger::m_buffering {true} |
|
private |
◆ m_categories
std::atomic<uint32_t> BCLog::Logger::m_categories {0} |
|
private |
◆ m_cs
std::mutex BCLog::Logger::m_cs |
|
mutableprivate |
◆ m_file_path
fs::path BCLog::Logger::m_file_path |
◆ m_fileout
FILE* BCLog::Logger::m_fileout = nullptr |
|
private |
◆ m_log_threadnames
◆ m_log_time_micros
◆ m_log_timestamps
◆ m_msgs_before_open
std::list<std::string> BCLog::Logger::m_msgs_before_open |
|
private |
◆ m_print_to_console
bool BCLog::Logger::m_print_to_console = false |
◆ m_print_to_file
bool BCLog::Logger::m_print_to_file = false |
◆ m_reopen_file
std::atomic<bool> BCLog::Logger::m_reopen_file {false} |
◆ m_started_new_line
std::atomic_bool BCLog::Logger::m_started_new_line {true} |
|
private |
m_started_new_line is a state variable that will suppress printing of the timestamp when multiple calls are made that don't end in a newline.
The documentation for this class was generated from the following files: