Skip to content
Snippets Groups Projects
Commit b4d3dd70 authored by Jeremie Deray's avatar Jeremie Deray
Browse files

add test_wolf_logging

parent c11ff6ce
No related branches found
No related tags found
1 merge request!99Wolf logging macro
...@@ -9,6 +9,9 @@ ADD_EXECUTABLE(test_sh_ptr test_sh_ptr.cpp) ...@@ -9,6 +9,9 @@ ADD_EXECUTABLE(test_sh_ptr test_sh_ptr.cpp)
ADD_EXECUTABLE(test_wolf_root test_wolf_root.cpp) ADD_EXECUTABLE(test_wolf_root test_wolf_root.cpp)
ADD_EXECUTABLE(test_wolf_logging test_wolf_logging.cpp)
TARGET_LINK_LIBRARIES(test_wolf_logging ${PROJECT_NAME})
IF(Ceres_FOUND) IF(Ceres_FOUND)
# test_processor_odom_3D # test_processor_odom_3D
ADD_EXECUTABLE(test_processor_odom_3D test_processor_odom_3D.cpp) ADD_EXECUTABLE(test_processor_odom_3D test_processor_odom_3D.cpp)
......
/**
* \file test_wolf_logging.cpp
*
* Created on: Oct 28, 2016
* \author: Jeremie Deray
*/
#include "wolf.h"
#include "logging.h"
int main(int, char*[])
{
WOLF_INFO("test info ", 5, " ", 0.123);
WOLF_WARN("test warn ", 5, " ", 0.123);
WOLF_ERROR("test error ", 5, " ", 0.123);
WOLF_TRACE("test trace ", 5, " ", 0.123);
WOLF_DEBUG("test debug ", 5, " ", 0.123);
// manually enable debug logging
WOLF_ENABLE_DEBUG_LOG();
WOLF_DEBUG("test enable debug");
// manually disable debug logging
WOLF_DISABLE_DEBUG_LOG();
WOLF_DEBUG("test disable debug");
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment