Namespaces | Macros
common/logger.h File Reference
#include <opc/common/class_pointers.h>
#include <opc/spdlog/spdlog.h>
#include <opc/spdlog/fmt/ostr.h>
Include dependency graph for common/logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Common
 Addon interface definition GNU LGPL.
 
 Common::Logger
 

Macros

#define LOG_CRITICAL(__logger__, ...)   { if (__logger__ && __logger__->should_log(spdlog::level::critical)) { __logger__->critical(__VA_ARGS__); }}
 
#define LOG_DEBUG(__logger__, ...)   { if (__logger__ && __logger__->should_log(spdlog::level::debug)) { __logger__->debug(__VA_ARGS__); }}
 
#define LOG_ERROR(__logger__, ...)   { if (__logger__ && __logger__->should_log(spdlog::level::err)) { __logger__->error(__VA_ARGS__); }}
 
#define LOG_INFO(__logger__, ...)   { if (__logger__ && __logger__->should_log(spdlog::level::info)) { __logger__->info(__VA_ARGS__); }}
 
#define LOG_TRACE(__logger__, ...)   { if (__logger__ && __logger__->should_log(spdlog::level::trace)) { __logger__->trace(__VA_ARGS__); }}
 
#define LOG_WARN(__logger__, ...)   { if (__logger__ && __logger__->should_log(spdlog::level::warn)) { __logger__->warn(__VA_ARGS__); }}
 

Macro Definition Documentation

#define LOG_CRITICAL (   __logger__,
  ... 
)    { if (__logger__ && __logger__->should_log(spdlog::level::critical)) { __logger__->critical(__VA_ARGS__); }}

Definition at line 28 of file common/logger.h.

#define LOG_DEBUG (   __logger__,
  ... 
)    { if (__logger__ && __logger__->should_log(spdlog::level::debug)) { __logger__->debug(__VA_ARGS__); }}

Definition at line 24 of file common/logger.h.

#define LOG_ERROR (   __logger__,
  ... 
)    { if (__logger__ && __logger__->should_log(spdlog::level::err)) { __logger__->error(__VA_ARGS__); }}

Definition at line 27 of file common/logger.h.

#define LOG_INFO (   __logger__,
  ... 
)    { if (__logger__ && __logger__->should_log(spdlog::level::info)) { __logger__->info(__VA_ARGS__); }}

Definition at line 25 of file common/logger.h.

#define LOG_TRACE (   __logger__,
  ... 
)    { if (__logger__ && __logger__->should_log(spdlog::level::trace)) { __logger__->trace(__VA_ARGS__); }}

Definition at line 23 of file common/logger.h.

#define LOG_WARN (   __logger__,
  ... 
)    { if (__logger__ && __logger__->should_log(spdlog::level::warn)) { __logger__->warn(__VA_ARGS__); }}

Definition at line 26 of file common/logger.h.



ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:09