lost message in syslog
Arthur LAMBERT
lambertarthur22 at gmail.com
Wed Feb 24 11:39:23 UTC 2016
Hi,
I am using syslog from uclibc (1.0.5) on an ARM board. I am working in a multi thread environment.
I can see that some message are never saved in my syslog file..
Any problem to use syslog with thread ? or emmc ?
I used macro like this :
#define _PRINT_DEBUG(M, ...) \
do { \
printf ("[DEBUG] [%s:%d]: " M "%s\n", __FILE__, __LINE__, __VA_ARGS__); \
syslog(LOG_DEBUG, "[DEBUG] [%s:%d]: " M "%s\n", __FILE__, __LINE__, __VA_ARGS__); \
} while (0)
#endif
All my messages are in my stdout (thanks to printf) but some message are missing in my syslog file.
Thanks,
Arthur.
More information about the uClibc
mailing list