/******************************************************************************** * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH * * * * This software is distributed under the terms of the * * GNU Lesser General Public Licence version 3 (LGPL) version 3, * * copied verbatim in the file "LICENSE" * ********************************************************************************/ // WARNING : pragma commands to hide boost warning // TODO : remove these pragma commands when boost will fix this issue in future release #if defined(__clang__) _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wshadow\"") #include "logger.h" _Pragma("clang diagnostic pop") #elif defined(__GNUC__) || defined(__GNUG__) _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wshadow\"") #include "logger.h" _Pragma("GCC diagnostic pop") #endif void test_logger() { LOG(TRACE) << "this is a trace message"; LOG(DEBUG) << "this is a debug message"; LOG(RESULTS) << "this is a results message"; LOG(INFO) << "this is a info message"; LOG(WARN) << "this is a warning message"; LOG(ERROR) << "this is an error message"; LOG(STATE) << "this is a state message"; } void test_set_level() { std::cout<<"********* test logger : SET_LOG_LEVEL(lvl) *********"<