ugv_nav4d
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
8void privTrace() {
9 std::cout << std::endl;
10}
11template <typename T, typename... Args>
12void privTrace(T t, Args... args)
13{
14 std::cout << t << " ";
15 privTrace(args...);
16}
17template <typename ...Args>
18void 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
void privTrace()
Definition Logger.hpp:8
void PlanTrace(const char *file, const char *func, const int line, Args &&...args)
Definition Logger.hpp:18