MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ should_log()

bool MayaFlux::Journal::Archivist::Impl::should_log ( Severity  severity,
Component  component 
) const
inlineprivate

Definition at line 144 of file Archivist.cpp.

145 {
146 if (severity != Severity::NONE && severity < m_min_severity.load(std::memory_order_relaxed)) {
147 return false;
148 }
149
150 auto comp_idx = static_cast<size_t>(component);
151 if (comp_idx >= m_component_filters.size()) {
152 return false;
153 }
154
155 // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-constant-array-index)
156 return m_component_filters[comp_idx];
157 }
std::atomic< Severity > m_min_severity
std::array< bool, magic_enum::enum_count< Component >()> m_component_filters

References m_component_filters, m_min_severity, and MayaFlux::Journal::NONE.

Referenced by scribe_rt().

+ Here is the caller graph for this function: