Welcome message and output compilation date and time to trace and the message facility
Print out to the message facility and elsewhere a statement of the version of the product.
For developing and debugging is useful to have a message displaying at what time the code was last compiled.
Something along the lines:
const char* const COMPILED = DATE " @ " TIME;
TLOG(TLVL_INFO) << " ------------------------- "
<< "\n Compiled: " << COMPILED << "\n"
<< " ------------------------- "<< TLOG_ENDL;
#1 Updated by Eric Flumerfelt 9 months ago
- Assignee set to Eric Flumerfelt
- Status changed from New to Rejected
This message is already part of artdaq, see https://cdcvs.fnal.gov/redmine/projects/artdaq/repository/revisions/develop/entry/proto/artdaqapp.hh#L85.
However, in DAQInterface's usual order of initialization, the MessageViewer is not yet present and running when this message is sent. It is, however, logged to the TRACE buffer and process log files.
#2 Updated by Iker de Icaza Astiz 9 months ago
Thanks for pointing that out I'll look into using that feature ourselves.
However I still feel this a rather standard message and useful way of being sure that you are running code that you just compiled. What about repeating this message or moving it such that it also appear at the Message Facility?
#3 Updated by Eric Flumerfelt 9 months ago
- Status changed from Rejected to Resolved
On artdaq:feature/22956_BuildInfo_TRACEBuildInfo, I have added output of the package versions and build timestamps to BuildInfo_module. These are debug messages, but will appear in the Message Viewer with appropriate filtering.