ugv_nav4d
src
Logger.hpp
Go to the documentation of this file.
1
#ifndef LOG_PLAN_H
2
#define LOG_PLAN_H
3
#define LOG_PLAN(...) PlanTrace(__FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
4
#include<iostream>
5
6
7
8
void
privTrace
() {
9
std::cout << std::endl;
10
}
11
template
<
typename
T,
typename
... Args>
12
void
privTrace
(T t, Args... args)
13
{
14
std::cout << t <<
" "
;
15
privTrace
(args...);
16
}
17
template
<
typename
...Args>
18
void
PlanTrace
(
const
char
* file,
const
char
* func,
const
int
line, Args&& ...args)
19
{
20
std::cout <<
'['
<< file <<
'|'
<< func <<
'@'
<< line <<
"]:\t"
;
21
privTrace
(args...);
22
}
23
#endif
privTrace
void privTrace()
Definition:
Logger.hpp:8
PlanTrace
void PlanTrace(const char *file, const char *func, const int line, Args &&...args)
Definition:
Logger.hpp:18
Generated by
1.9.1