83 FilterListEntry(
const std::string& targetName=
"",
bool isBlackListEntry=
false );
84 FilterListEntry(
const std::string& targetName,
int rank,
const std::string& className,
bool isBlackListEntry,
const std::string& programPhase );
93 #if !defined(SharedMemoryParallelisation) && PeanoDebug>=1
94 std::stack<std::string> _indentTraces;
110 const std::string& targetName,
111 const std::string& className
134 bool writeInfo(
const std::string& trace);
Peano4's log filter is used by every single log instance.
void addFilterListEntry(const FilterListEntry &entry)
Add one filter list entry.
bool writeInfo(const std::string &trace)
std::set< FilterListEntry > FilterList
bool writeWarning(const std::string &trace)
bool writeDebug(const std::string &trace)
void printFilterListToCout() const
void switchProgramPhase(const std::string &activeProgramPhase)
void addFilterListEntries(const FilterList &entries)
LogFilter()
By default, everything is on.
std::string _activeProgramPhase
bool writeTrace(const std::string &trace)
static LogFilter & getInstance()
bool filterOut(const std::string &targetName, const std::string &className)
May not be const as it might write a warning itself.
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Represents one entry of the filter list.
static const std::string TargetTrace
static const std::string TargetDebug
static const std::string TargetInfo
bool operator!=(const FilterListEntry &b) const
static const bool WhiteListEntry
std::string _namespaceName
Name of the namespace that should not be logged.
std::string toString() const
bool operator<(const FilterListEntry &b) const
static const std::string TargetAll
static const std::string AlwaysOn
static const std::string TargetWarning
bool _isBlackEntry
If true, filter list entry is a filter list entry, otherwise white list.
static const bool BlackListEntry
FilterListEntry(const std::string &targetName="", bool isBlackListEntry=false)
Construct filter list entry for one target without any.
int _rank
Sometimes, one wants to block all log entries of one namespace of one node (parallel case).
bool operator==(const FilterListEntry &b) const
std::string _programPhase
AlwaysOn if the filter entry applies for all phases.
std::string _targetName
The message type target can be either "debug" or "info".