Basic C++ logging interface
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 29 May 2016 04:22:05 +0000 (07:22 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 1 Jun 2016 17:37:51 +0000 (20:37 +0300)
commit05353dd65a252a7fd60e6aa8dc898daca468c302
tree0fa16895e84a1f2d9b8abe261ba07bca4b6a73b2
parent6966c327688ecd09654087fc822ede57bd0f918a
Basic C++ logging interface

Add C++ classes to replace md_logging.*, as well as (most if not all)
direct fplog and stderr output in the future.  This change contains the
implementation; child change(s) will actually take this into use once
the interface is final.

Documentation could still be improved, but at least an overview is there
(and the details may change somewhat once the usage spreads and there
are more use cases).

Change-Id: I8fc8550194853a5387057fdb7772f882fc061708
16 files changed:
docs/doxygen/lib/logging.md [new file with mode: 0644]
docs/doxygen/user/mainpage.md
src/gromacs/utility.h
src/gromacs/utility/gmxmpi.h
src/gromacs/utility/logger.cpp [new file with mode: 0644]
src/gromacs/utility/logger.h [new file with mode: 0644]
src/gromacs/utility/loggerbuilder.cpp [new file with mode: 0644]
src/gromacs/utility/loggerbuilder.h [new file with mode: 0644]
src/gromacs/utility/stringutil.cpp
src/gromacs/utility/stringutil.h
src/gromacs/utility/tests/CMakeLists.txt
src/gromacs/utility/tests/logger.cpp [new file with mode: 0644]
src/gromacs/utility/tests/refdata/LoggerTest_LevelFilteringWorks.xml [new file with mode: 0644]
src/gromacs/utility/tests/refdata/LoggerTest_LogsToFile.xml [new file with mode: 0644]
src/gromacs/utility/tests/refdata/LoggerTest_LogsToMultipleStreams.xml [new file with mode: 0644]
src/gromacs/utility/tests/refdata/LoggerTest_LogsToStream.xml [new file with mode: 0644]