67 virtual ~ObjectWithTrace() {}
71 void alien_info(T&& t)
const
73 _print(Verbosity::Info, std::move(t));
77 void alien_debug(T&& t)
const
79 _print(Verbosity::Debug, std::move(t));
83 void alien_warning(T&& t)
const
85 _print(Verbosity::Warning, std::move(t));
89 void alien_fatal(T&& t)
const
91 auto* trace = traceMng();
92 if (trace !=
nullptr) {
97 throw FatalErrorException(
98 A_FUNCINFO,
"Fatal error in Alien - for more details, increase verbosity level");
103 TraceMessage cout()
const
106 return traceMng()->info();
110 void _checkLock()
const
113 throw FatalErrorException(
"Trace in Alien should be done using trace section");
117 template <
typename T>
120 auto* trace = traceMng();
121 if (trace ==
nullptr)
124 if (
Universe().verbosityLevel() <= N) {
138 mutable bool m_is_locked;