logger initial commit

This commit is contained in:
UPSquared
2018-05-21 19:13:18 +03:00
committed by Stefan Andritoiu
parent 9a959b578c
commit e3f1533652
2 changed files with 101 additions and 0 deletions

17
examples/c++/logger.cxx Normal file
View File

@ -0,0 +1,17 @@
#include "upm_logger.hpp"
using namespace upm;
int main()
{
UPM_LOGGER::getLogLevel() = LOG_ERROR;
UPM_LOGGER().get(LOG_WARNING) << "a loop with 4 iterations";
for (int i = 0; i < 4; ++i) {
UPM_LOGGER().get(LOG_DEBUG) << "i = " << i;
}
return 0;
}