diff options
author | thiagoftsm <49162938+thiagoftsm@users.noreply.github.com> | 2019-04-05 14:05:49 +0000 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-04-05 16:05:49 +0200 |
commit | e77241c3cfc542e75042d24b94bc71d0773ae7b9 (patch) | |
tree | 115ef7c2f8ae738493d303e92b7505ecd958233c /daemon | |
parent | 4231e17d60e59c56fdbde1e4880a2a2e155bd9e0 (diff) |
Support configurable syslog facilities (#5792)
* Changes in libnetdata/log/log.c to append facility
* Fixing compilatioN
* Fixing compilation problem!
* Remove comments and adjust indentation inside log
* Update log.c
* Elimination of unnecessary calls to function
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c index e875fa938c..ba8d4b4ef6 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -355,6 +355,10 @@ void log_init(void) { snprintfz(filename, FILENAME_MAX, "%s/access.log", netdata_configured_log_dir); stdaccess_filename = config_get(CONFIG_SECTION_GLOBAL, "access log", filename); + char deffacility[8]; + snprintfz(deffacility,7,"%s","daemon"); + facility_log = config_get(CONFIG_SECTION_GLOBAL, "facility log", deffacility); + error_log_throttle_period = config_get_number(CONFIG_SECTION_GLOBAL, "errors flood protection period", error_log_throttle_period); error_log_errors_per_period = (unsigned long)config_get_number(CONFIG_SECTION_GLOBAL, "errors to trigger flood protection", (long long int)error_log_errors_per_period); error_log_errors_per_period_backup = error_log_errors_per_period; |