lnls-dig / halcs

Hardware Abstraction Layer for Control Systems
GNU General Public License v3.0
1 stars 4 forks source link

[all] Use syslog system facility to uniformize logs #156

Open lerwys opened 7 years ago

lerwys commented 7 years ago

Problem: Log facility is cumbersome to use as we need to recompile the software to change it.

Solution: Evaluate the usage of syslog to this purpose. An example can be seen here: https://github.com/zeromq/czmq/blob/afe53529aa4d49eb57e8486c975c9b77b382aaf3/src/zsys.c

lerwys commented 6 years ago

This can also prevent log explosion when a continuous error keeps happening