9 #include "quill/core/Attributes.h" 19 #if defined(__MINGW32__) 124 std::chrono::microseconds log_timestamp_ordering_grace_period{1}; 137 bool wait_for_queues_to_empty_before_exit = true; 146 uint16_t cpu_affinity = (std::numeric_limits<uint16_t>::max)(); 162 std::function<void(std::string const&)> error_notifier = [](std::string const& error_message) 164 #if !defined(__MINGW32__) 165 std::fprintf(stderr, "%s\n", error_message.data()); 167 // fprintf crashes on mingw gcc 13 for unknown reason 168 std::cerr << error_message.data() << "\n"; 185 std::chrono::milliseconds rdtsc_resync_interval = std::chrono::milliseconds{500}; 202 std::chrono::milliseconds sink_min_flush_interval = std::chrono::milliseconds{200}; 217 std::function<bool(char c)> check_printable_char = [](char c) 218 { return (c >= ' ' && c <= '~
') || (c == '\n
'); }; 225 std::array<std::string, 11> log_level_descriptions = { 226 "TRACE_L3", "TRACE_L2", "TRACE_L1", "DEBUG", "INFO", "NOTICE", 227 "WARNING", "ERROR", "CRITICAL", "BACKTRACE", "NONE"}; 235 std::array<std::string, 11> log_level_short_codes = {"T3", "T2", "T1", "D", "I", "N", 236 "W", "E", "C", "BT", "_"}; 258 bool check_backend_singleton_instance = true; bool enable_yield_when_idle
The backend employs "busy-waiting" by spinning around each frontend thread's queue.
Definition: BackendOptions.h:44
uint32_t transit_event_buffer_initial_capacity
The backend pops all log messages from the frontend queues and buffers them in a local ring buffer qu...
Definition: BackendOptions.h:58
std::chrono::nanoseconds sleep_duration
Specifies the duration the backend sleeps if there is no remaining work to process in the queues...
Definition: BackendOptions.h:49
size_t transit_events_hard_limit
The backend gives priority to reading messages from the frontend queues and temporarily buffers them...
Definition: BackendOptions.h:92
size_t transit_events_soft_limit
The backend gives priority to reading messages from the frontend queues of all the hot threads and te...
Definition: BackendOptions.h:75
std::string thread_name
The name assigned to the backend, visible during thread naming queries (e.g., pthread_getname_np) or ...
Definition: BackendOptions.h:36
Configuration options for the backend.
Definition: BackendOptions.h:30