Resolve "Add a logging framework for command line output"
What does this MR do?
Use loggers for the entire terminal output of DORiE.
- Replace config keys
verbose
withlogLevel
, taking the same names as defined byspdlog
- Rename
setup_inifile.hh
tosetup.hh
and add functions:-
Setup::init
initializes the MPI helper, the config file, and the base logger -
Setup::debug_hook
halts the program for a debugger to hook into the program
-
- Add logger as optional argument to most classes, such that they use a certain logger by default or the one specified by the programmer
- Add developer docs on how to use the loggers
Is there something that needs to be double checked?
All DUNE output (other than exceptions) is currently suppressed. One option would be to write a stream buffer, into which the output of functions like PDELab::mark_grid
is stored. This storage could then be accessed and displayed via a logger at a certain log level setting.
Can this MR be accepted?
-
Implemented logging feature -
Pipeline passing -
Updated README.md
with information on Git Submodule -
Added entry to CHANGELOG.md
Related issues
Closes #92 (closed)
What does the new output look like?
Log levels on info
:
Log levels on debug
:
Log levels on trace
:
with adaptivity
debug
:
trace
:
Edited by Lukas Riedel