Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

13 refactor logging #33

Merged
merged 4 commits into from
Oct 30, 2020
Merged

13 refactor logging #33

merged 4 commits into from
Oct 30, 2020

Conversation

starturtle
Copy link
Owner

closes #13
changed syntax so the LogStream class is not actually a stream, but uses operator<< to log.
momentary log levels switch logging on and off and serve as a stand-in for line breaks.
added a unit test that will verify that the right log level combinations cause the right reaction (maybe that one should get explicitly written down for clarity, though...)

closes #31
DOCTEST_INCLUDE_DIR is being evaluated now. if it is empty, BUILD_TESTING won't be set, also, BUILD_TESTING can be configured to be OFF. If it is, the test code is not included anywhere, and the test project configs are not generated.

… GCD calculus, and that if the DOCTEST_INCLUDE_DIR is not set (or BUILD_TESTING is switched off), test projects are not being configured and thus, doctest is not needed.
…o conflicts between doctest and the enum value names, two needed renaming to be unit-testable...
Copy link
Owner Author

@starturtle starturtle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still needs quite some work, in particular on the documentation side.

CMakeLists.txt Outdated Show resolved Hide resolved
imaging/Pixelator.cpp Show resolved Hide resolved
imaging/ShrinkPixelator.cpp Show resolved Hide resolved
qtgui/CMakeLists.txt Outdated Show resolved Hide resolved
qtgui/SourceImage.cpp Outdated Show resolved Hide resolved
utilities/calculus.h Outdated Show resolved Hide resolved
utilities/logging.cpp Outdated Show resolved Hide resolved
utilities/logging.cpp Outdated Show resolved Hide resolved
utilities/logging.cpp Outdated Show resolved Hide resolved
utilities/logging.cpp Outdated Show resolved Hide resolved
@starturtle starturtle added the hacktoberfest-accepted Hacktoberfest 2020 label Oct 30, 2020
@starturtle starturtle self-assigned this Oct 30, 2020
@starturtle starturtle added this to the Test Functionality milestone Oct 30, 2020
… log stream, fixed test building config, added more usage/installation documentation, reduced linked Qt packages for tests, added documentational comments, ...
@starturtle starturtle merged commit dfbd637 into main Oct 30, 2020
@starturtle starturtle deleted the 13-refactor-logging branch October 30, 2020 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest 2020
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make dependency on doctest optional Improve logging architecture
1 participant