Skip to content
Snippets Groups Projects
Commit df8ec558 authored by Patrick MADELA's avatar Patrick MADELA
Browse files

Merge branch 'main' of gitlab.synchrotron-soleil.fr:software-control-system/libraries/yat4tango

parents 0814e0d0 78e0ffcc
Branches
No related tags found
No related merge requests found
YAT4Tango history file
1.14.2 (2025/01/31)
===================
Additions
New macros Y4T_LOG_DEBUG, Y4T_LOG_INFO,Y4T_LOG_WARNING,Y4T_LOG_ERROR
-> see <yat4tango/LogHelper.h>
1.14.1 (2024/07/15)
===================
......
......@@ -2,7 +2,7 @@ from conan import ConanFile
class yat4tangoRecipe(ConanFile):
name = "yat4tango"
version = "1.14.1"
version = "1.14.2"
package_type = "library"
user = "soleil"
python_requires = "base/[>=1.0]@soleil/stable"
......
......@@ -205,6 +205,36 @@ private:
log4tango::Logger* logger_;
};
//- Macros to ease the use of formatted log methods in class instance inherited
// from TangoLogAdapter
// usage:
// Y4T_LOG_INFO("msg with this value: {} and this one: {}", value1, value2);
// Y4T_LOG_INFO("msg with no argument");
// Thus the arguments values are now between parenthesis!
#define Y4T_LOG_DEBUG(s, ...) \
do \
{ \
debug(s), ##__VA_ARGS__; \
} while(0)
#define Y4T_LOG_INFO(s, ...) \
do \
{ \
info(s), ##__VA_ARGS__; \
} while(0)
#define Y4T_LOG_WARNING(s, ...) \
do \
{ \
warn(s), ##__VA_ARGS__; \
} while(0)
#define Y4T_LOG_ERROR(s, ...) \
do \
{ \
error(s), ##__VA_ARGS__; \
} while(0)
#if defined (YAT4TANGO_ENABLE_TRACE)
// ============================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment