43 void log_with_indent(
unsigned n, std::string
const&
message)
const;
48 void preBeginRun(
Run const& run);
49 void postBeginRun(
Run const& run);
51 void preBeginSubRun(
SubRun const& subRun);
52 void postBeginSubRun(
SubRun const& subRun);
58 void postEndSubRun(
SubRun const& run);
61 void postEndRun(
Run const& run);
90 void preSourceSubRun();
91 void postSourceSubRun(
SubRun const&);
94 void postSourceRun(
Run const&);
97 void postOpenFile(
string const& fn);
100 void postCloseFile();
102 void postOpenOutputFile(
string const& label);
103 void preCloseOutputFile(
string const& label);
106 void prePathBeginRun(
string const& s);
107 void postPathBeginRun(
string const& s,
HLTPathStatus const& hlt);
109 void prePathBeginSubRun(
string const& s);
110 void postPathBeginSubRun(
string const& s,
HLTPathStatus const& hlt);
115 void prePathEndSubRun(
string const& s);
116 void postPathEndSubRun(
string const& s,
HLTPathStatus const& hlt);
118 void prePathEndRun(
string const& s);
119 void postPathEndRun(
string const& s,
HLTPathStatus const& hlt);
124 std::atomic<unsigned int> depth_{};
128 : indentation_{config().indentation()}
132 <<
" threads have been configured, the tracing " 133 "messages will be interleaved.\n" 134 <<
"Please configure your job to use one thread " 135 "for a predictable output.";
142 iRegistry.sPreModuleConstruction.watch(
this,
144 iRegistry.sPostModuleConstruction.watch(
this,
155 iRegistry.sPostModuleBeginSubRun.watch(
this,
197 std::string printout;
198 for (; n != 0u; --
n) {
204 std::cout << printout;
264 string const displayed_fn{fn.empty() ?
"<none>"s : fn};
297 2,
"finished close output file " + fn +
" from " + info.
moduleLabel());
304 std::ostringstream msg;
305 msg <<
"processing event: " << ev.
id() <<
" time: " << ev.
time().
value();
345 std::ostringstream msg;
346 msg <<
"processing begin run: " << run.
id()
387 std::ostringstream msg;
388 msg <<
"processing end run: " << iID <<
" time: " << iTime.
value();
428 std::ostringstream msg;
429 msg <<
"processing begin subRun: " << subRun.
id()
470 std::ostringstream msg;
471 msg <<
"processing end subRun: " << iID <<
" time: " << iTime.
value();
void preModuleEndSubRun(ModuleContext const &mc)
void preModuleEndRun(ModuleContext const &mc)
void log_with_indent(unsigned n, std::string const &message) const
void postSourceSubRun(SubRun const &)
void postSourceRun(Run const &)
void preCloseOutputFile(string const &label)
void preModuleConstruction(ModuleDescription const &md)
void postModuleConstruction(ModuleDescription const &md)
void preModuleBeginSubRun(ModuleContext const &mc)
void postPathBeginSubRun(string const &s, HLTPathStatus const &hlt)
std::string const & moduleLabel() const
void preEvent(Event const &ev, ScheduleContext)
void message(RunManager *runmanager)
void preEndRun(RunID const &id, Timestamp const &ts)
void postPathEndSubRun(string const &s, HLTPathStatus const &hlt)
void postModuleBeginJob(ModuleDescription const &md)
void postModuleBeginRun(ModuleContext const &mc)
void postModuleBeginSubRun(ModuleContext const &mc)
void preBeginRun(Run const &run)
std::atomic< unsigned int > depth_
std::string const & moduleLabel() const
constexpr TimeValue_t value() const
void preSourceEvent(ScheduleContext)
void preBeginSubRun(SubRun const &subRun)
void postEndSubRun(SubRun const &run)
Tracer(Parameters const &, ActivityRegistry &)
void preModuleBeginRun(ModuleContext const &mc)
auto const & pathName() const
std::string const & fileName() const
void preModuleEvent(ModuleContext const &mc)
void postModuleEndRun(ModuleContext const &mc)
#define DECLARE_ART_SERVICE(svc, scope)
void postBeginRun(Run const &run)
void preModuleEndJob(ModuleDescription const &md)
void postModuleEvent(ModuleContext const &mc)
void postOpenFile(string const &fn)
void postEndRun(Run const &run)
void postEvent(Event const &ev, ScheduleContext)
void prePathEndSubRun(string const &s)
void postModuleEndSubRun(ModuleContext const &mc)
void prePathBeginRun(string const &s)
void prePathEndRun(string const &s)
void postPathEndRun(string const &s, HLTPathStatus const &hlt)
#define DEFINE_ART_SERVICE(svc)
void postOpenOutputFile(string const &label)
void postModuleEndJob(ModuleDescription const &md)
void preModuleBeginJob(ModuleDescription const &md)
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
auto const & moduleLabel() const
Timestamp const & beginTime() const
static Globals * instance()
void preEndSubRun(SubRunID const &id, Timestamp const &ts)
Timestamp const & beginTime() const
void prePathEvent(PathContext const &pc)
void prePathBeginSubRun(string const &s)
void postCloseOutputFile(OutputFileInfo const &info)
void postPathEvent(PathContext const &pc, HLTPathStatus const &hlt)
string const indentation_
void postBeginSubRun(SubRun const &subRun)
void postSourceEvent(Event const &, ScheduleContext)
void postPathBeginRun(string const &s, HLTPathStatus const &hlt)