1 #if !defined(__ALE_H__)
4 #if defined(__cplusplus)
8 #define LOGGER_ALE_MASK 0xf0
10 #define LOGGER_ALE_MSG_RAW 0x00
11 #define LOGGER_ALE_MSG_K 0x10
12 #define LOGGER_ALE_MSG_N 0x20
13 #define LOGGER_ALE_MSG_J 0x30
14 #define LOGGER_ALE_XMSG_K 0x40
15 #define LOGGER_ALE_XMSG_N 0x50
16 #define LOGGER_ALE_XMSG_J 0x60
18 #define LOGGER_ALE_MSG_SIZE 768
20 #define LOGGER_ALE_ARGS_MAX 16
27 char params
[LOGGER_ALE_ARGS_MAX
];
30 int ale_log_output_binary(int prio
, const char *tag
, const void *payload
, size_t len
);
32 int ale_log_output(int bufid
, int prio
, const struct ale_convert
*convert
, ...);
34 #define ale_log_print(bufid, prio, tag, fmt, ...) \
36 if (__builtin_constant_p(tag) && __builtin_constant_p(fmt)) { \
37 static const struct ale_convert ____ale_rec____ = \
39 __builtin_constant_p(tag) ? tag : NULL, \
40 __builtin_constant_p(fmt) ? fmt : NULL, \
42 __builtin_constant_p(prio) ? prio : 0, \
45 ale_log_output(bufid, prio, &____ale_rec____, ##__VA_ARGS__); \
48 struct ale_convert ale = \
51 ale_log_output(bufid, prio, &ale, ##__VA_ARGS__); \
55 #if defined(__cplusplus)