Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
b4d3dd70
Commit
b4d3dd70
authored
8 years ago
by
Jeremie Deray
Browse files
Options
Downloads
Patches
Plain Diff
add test_wolf_logging
parent
c11ff6ce
No related branches found
Branches containing commit
No related tags found
1 merge request
!99
Wolf logging macro
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/examples/CMakeLists.txt
+3
-0
3 additions, 0 deletions
src/examples/CMakeLists.txt
src/examples/test_wolf_logging.cpp
+34
-0
34 additions, 0 deletions
src/examples/test_wolf_logging.cpp
with
37 additions
and
0 deletions
src/examples/CMakeLists.txt
+
3
−
0
View file @
b4d3dd70
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/examples/test_wolf_logging.cpp
0 → 100644
+
34
−
0
View file @
b4d3dd70
/**
* \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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment