#include <chrono>
#include <console_bridge/console.h>
#include <sstream>
#include <fmt/format.h>
#include <fmt/ostream.h>
Go to the source code of this file.
Macros | |
#define | PSENSCAN_DEBUG(name, ...) PSENSCAN_LOG(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__) |
#define | PSENSCAN_DEBUG_ONCE(name, ...) PSENSCAN_LOG_ONCE(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__) |
#define | PSENSCAN_DEBUG_THROTTLE(period, name, ...) PSENSCAN_LOG_THROTTLE(period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__) |
#define | PSENSCAN_DEBUG_THROTTLE_INTERNAL(now, period, name, ...) PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__) |
#define | PSENSCAN_ERROR(name, ...) PSENSCAN_LOG(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__) |
#define | PSENSCAN_ERROR_ONCE(name, ...) PSENSCAN_LOG_ONCE(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__) |
#define | PSENSCAN_ERROR_THROTTLE(period, name, ...) PSENSCAN_LOG_THROTTLE(period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__) |
#define | PSENSCAN_ERROR_THROTTLE_INTERNAL(now, period, name, ...) PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__) |
#define | PSENSCAN_INFO(name, ...) PSENSCAN_LOG(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__) |
#define | PSENSCAN_INFO_ONCE(name, ...) PSENSCAN_LOG_ONCE(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__) |
#define | PSENSCAN_INFO_THROTTLE(period, name, ...) PSENSCAN_LOG_THROTTLE(period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__) |
#define | PSENSCAN_INFO_THROTTLE_INTERNAL(now, period, name, ...) PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__) |
#define | PSENSCAN_LOG(name, file, line, level, ...) |
#define | PSENSCAN_LOG_ONCE(name, file, line, level, ...) |
#define | PSENSCAN_LOG_THROTTLE(period, name, file, line, level, ...) PSENSCAN_LOG_THROTTLE_INTERNAL(std::chrono::system_clock::now(), period, name, file, line, level, __VA_ARGS__) |
#define | PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, file, line, level, ...) |
#define | PSENSCAN_WARN(name, ...) PSENSCAN_LOG(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__) |
#define | PSENSCAN_WARN_ONCE(name, ...) PSENSCAN_LOG_ONCE(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__) |
#define | PSENSCAN_WARN_THROTTLE(period, name, ...) PSENSCAN_LOG_THROTTLE(period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__) |
#define | PSENSCAN_WARN_THROTTLE_INTERNAL(now, period, name, ...) PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__) |
#define PSENSCAN_DEBUG | ( | name, | |
... | |||
) | PSENSCAN_LOG(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__) |
#define PSENSCAN_DEBUG_ONCE | ( | name, | |
... | |||
) | PSENSCAN_LOG_ONCE(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__) |
#define PSENSCAN_DEBUG_THROTTLE | ( | period, | |
name, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE(period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__) |
#define PSENSCAN_DEBUG_THROTTLE_INTERNAL | ( | now, | |
period, | |||
name, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__) |
#define PSENSCAN_ERROR | ( | name, | |
... | |||
) | PSENSCAN_LOG(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__) |
#define PSENSCAN_ERROR_ONCE | ( | name, | |
... | |||
) | PSENSCAN_LOG_ONCE(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__) |
#define PSENSCAN_ERROR_THROTTLE | ( | period, | |
name, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE(period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__) |
#define PSENSCAN_ERROR_THROTTLE_INTERNAL | ( | now, | |
period, | |||
name, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__) |
#define PSENSCAN_INFO | ( | name, | |
... | |||
) | PSENSCAN_LOG(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__) |
#define PSENSCAN_INFO_ONCE | ( | name, | |
... | |||
) | PSENSCAN_LOG_ONCE(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__) |
#define PSENSCAN_INFO_THROTTLE | ( | period, | |
name, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE(period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__) |
#define PSENSCAN_INFO_THROTTLE_INTERNAL | ( | now, | |
period, | |||
name, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__) |
#define PSENSCAN_LOG | ( | name, | |
file, | |||
line, | |||
level, | |||
... | |||
) |
#define PSENSCAN_LOG_ONCE | ( | name, | |
file, | |||
line, | |||
level, | |||
... | |||
) |
#define PSENSCAN_LOG_THROTTLE | ( | period, | |
name, | |||
file, | |||
line, | |||
level, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE_INTERNAL(std::chrono::system_clock::now(), period, name, file, line, level, __VA_ARGS__) |
#define PSENSCAN_LOG_THROTTLE_INTERNAL | ( | now, | |
period, | |||
name, | |||
file, | |||
line, | |||
level, | |||
... | |||
) |
#define PSENSCAN_WARN | ( | name, | |
... | |||
) | PSENSCAN_LOG(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__) |
#define PSENSCAN_WARN_ONCE | ( | name, | |
... | |||
) | PSENSCAN_LOG_ONCE(name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__) |
#define PSENSCAN_WARN_THROTTLE | ( | period, | |
name, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE(period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__) |
#define PSENSCAN_WARN_THROTTLE_INTERNAL | ( | now, | |
period, | |||
name, | |||
... | |||
) | PSENSCAN_LOG_THROTTLE_INTERNAL(now, period, name, __FILE__, __LINE__, CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__) |