DUNE-DAQ / logging

DUNE DAQ logging package
0 stars 0 forks source link

Common trace levels? #16

Open philiprodrigues opened 3 years ago

philiprodrigues commented 3 years ago

Some DUNE-DAQ packages define descriptive constants for certain trace levels. Eg

https://github.com/DUNE-DAQ/readout/blob/develop/include/readout/ReadoutLogging.hpp

Some of these descriptive constants are duplicated in multiple packages. It might be worth putting these common constants in a single place.

Here's a list of constant/filename I made from the packages that are part of the 2.6 release. The repeated constants would be the candidates for inclusion in a common list:

 TLVL_BASIC: dfmodules/plugins/HDF5DataStore.hpp   
 TLVL_BOOKKEEPING: dfmodules/plugins/TriggerRecordBuilder.cpp
 TLVL_BOOKKEEPING: flxlibs/plugins/FelixCardReader.cpp
 TLVL_BOOKKEEPING: flxlibs/src/CardWrapper.cpp
 TLVL_BOOKKEEPING: readout/include/readout/ReadoutLogging.hpp
 TLVL_CANDIDATE: trigger/include/trigger/Issues.hpp
 TLVL_CONFIG: dfmodules/plugins/DataWriter.cpp
 TLVL_DEBUG: logging/include/logging/detail/Logger.hxx                                                                   
 TLVL_DEBUG: logging/include/logging/detail/Logger.hxx
 TLVL_ENTER_EXIT_METHODS: dfmodules/plugins/DataWriter.cpp
 TLVL_ENTER_EXIT_METHODS: dfmodules/plugins/TriggerRecordBuilder.cpp
 TLVL_ENTER_EXIT_METHODS: dfmodules/src/TriggerDecisionForwarder.cpp
 TLVL_ENTER_EXIT_METHODS: dfmodules/src/TriggerInhibitAgent.cpp
 TLVL_ENTER_EXIT_METHODS: flxlibs/plugins/FelixCardReader.cpp
 TLVL_ENTER_EXIT_METHODS: flxlibs/src/CardWrapper.cpp
 TLVL_ENTER_EXIT_METHODS: listrev/plugins/ListReverser.cpp
 TLVL_ENTER_EXIT_METHODS: listrev/plugins/RandomDataListGenerator.cpp
 TLVL_ENTER_EXIT_METHODS: listrev/plugins/ReversedListValidator.cpp
 TLVL_ENTER_EXIT_METHODS: readout/include/readout/ReadoutLogging.hpp
 TLVL_ENTER_EXIT_METHODS: timinglibs/include/timinglibs/TimingIssues.hpp
 TLVL_ENTER_EXIT_METHODS: trigger/include/trigger/Issues.hpp 
 TLVL_FILE_SIZE: dfmodules/plugins/HDF5DataStore.hpp
 TLVL_FRAGMENT_HEADER_DUMP: dfmodules/plugins/DataWriter.cpp 
 TLVL_GENERATION: trigger/include/trigger/Issues.hpp
 TLVL_HOUSEKEEPING: readout/include/readout/ReadoutLogging.hpp
 TLVL_LIST_GENERATION: listrev/plugins/RandomDataListGenerator.cpp
 TLVL_LIST_REVERSAL: listrev/plugins/ListReverser.cpp
 TLVL_LIST_VALIDATION: listrev/plugins/ReversedListValidator.cpp
 TLVL_LOG: logging/include/logging/detail/Logger.hxx
 TLVL_QUEUE_POP: readout/include/readout/ReadoutLogging.hpp
 TLVL_QUEUE_PUSH: readout/include/readout/ReadoutLogging.hpp 
 TLVL_TAKE_NOTE: flxlibs/src/ElinkModel.hpp
 TLVL_TAKE_NOTE: readout/include/readout/ReadoutLogging.hpp
 TLVL_WORK_STEPS: dfmodules/plugins/DataWriter.cpp
 TLVL_WORK_STEPS: dfmodules/plugins/TriggerRecordBuilder.cpp 
 TLVL_WORK_STEPS: dfmodules/src/TriggerDecisionForwarder.cpp 
 TLVL_WORK_STEPS: dfmodules/src/TriggerInhibitAgent.cpp
 TLVL_WORK_STEPS: flxlibs/plugins/FelixCardReader.cpp
 TLVL_WORK_STEPS: flxlibs/src/CardWrapper.cpp
 TLVL_WORK_STEPS: readout/include/readout/ReadoutLogging.hpp