mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 09:51:14 +03:00
logger initial commit
This commit is contained in:

committed by
Stefan Andritoiu

parent
9a959b578c
commit
e3f1533652
17
examples/c++/logger.cxx
Normal file
17
examples/c++/logger.cxx
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user