MCPcopy Create free account
hub / github.com/dobin/RedEdr / Init

Method Init

RedEdrShared/loguru.cpp:1623–1645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1621 }
1622
1623 void LogScopeRAII::Init(const char* format, va_list vlist)
1624 {
1625 if (_verbosity <= current_verbosity_cutoff()) {
1626 std::lock_guard<std::recursive_mutex> lock(s_mutex);
1627 _indent_stderr = (_verbosity <= g_stderr_verbosity);
1628 _start_time_ns = now_ns();
1629 vsnprintf(_name, sizeof(_name), format, vlist);
1630 log_to_everywhere(1, _verbosity, _file, _line, "{ ", _name);
1631
1632 if (_indent_stderr) {
1633 ++s_stderr_indentation;
1634 }
1635
1636 for (auto& p : s_callbacks) {
1637 if (_verbosity <= p.verbosity) {
1638 ++p.indentation;
1639 }
1640 }
1641 }
1642 else {
1643 _file = nullptr;
1644 }
1645 }
1646
1647#if LOGURU_USE_FMTLIB
1648 void vlog_and_abort(int stack_trace_skip, const char* expr, const char* file, unsigned line, const char* format, fmt::format_args args)

Callers 1

LogScopeRAIIMethod · 0.95

Calls 3

current_verbosity_cutoffFunction · 0.85
now_nsFunction · 0.85
log_to_everywhereFunction · 0.85

Tested by

no test coverage detected