From e75269a136546c85dd20fa8b7f85c18423cc668a Mon Sep 17 00:00:00 2001 From: Dan Srebnick Date: Thu, 28 Sep 2017 12:23:58 -0400 Subject: [PATCH] Update logging approach --- README | 6 +++--- noaacap/etc/noaacap.conf | 3 ++- noaacap/usr/local/share/noaacap/CHANGELOG | 2 +- noaacap/usr/local/share/noaacap/README | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README b/README index 1658d79..1d28001 100644 --- a/README +++ b/README @@ -36,9 +36,6 @@ aprx.log, then you likely need to add the timeout. The program will check for a new alert or update every 2 minutes, but only send if there is a change. -For visibility into noaacap's actions via the systemd journal, you may add ---info or --debug to the exec command line for more verbose logging. - Edit /etc/noaacap.conf: Do not remove the [noaacap] section header. @@ -56,6 +53,9 @@ myResend should be set to 0 for no message resends or to an interval of your choosing. If noaacap beacons every 2 minutes, a value of 30 would provide hourly resends. +Logging values are 0 (quiet), 1 (informational), and 2 (debug). Logs are +written to the systemd journal. + USE It would be good to hear from users of this software. Please email diff --git a/noaacap/etc/noaacap.conf b/noaacap/etc/noaacap.conf index f5b71fb..4204208 100644 --- a/noaacap/etc/noaacap.conf +++ b/noaacap/etc/noaacap.conf @@ -1,4 +1,5 @@ [noaacap] myTZ = America/New_York -myZone = NJZ014 +myZone = NJC025 myResend = 0 +Logging = 0 diff --git a/noaacap/usr/local/share/noaacap/CHANGELOG b/noaacap/usr/local/share/noaacap/CHANGELOG index 5dd72da..ea8ce6c 100644 --- a/noaacap/usr/local/share/noaacap/CHANGELOG +++ b/noaacap/usr/local/share/noaacap/CHANGELOG @@ -3,7 +3,7 @@ noaacap changelog Version: 0.7 Release: TBD Added myResend parameter to control message resends. -Added command line parameters --info and --debug to control logging +Added Logging parameter to control verbosity. ## Version: 0.6 Release: September 15, 2017 diff --git a/noaacap/usr/local/share/noaacap/README b/noaacap/usr/local/share/noaacap/README index 5b13eb5..bc45cb3 100644 --- a/noaacap/usr/local/share/noaacap/README +++ b/noaacap/usr/local/share/noaacap/README @@ -31,9 +31,6 @@ aprx.log, then you likely need to add the timeout. The program will check for a new alert or update every 2 minutes, but only send if there is a change. -For visibility into noaacap's actions via the systemd journal, you may add ---info or --debug to the exec command line for more verbose logging. - Edit /etc/noaacap.conf: Do not remove the [noaacap] section header. @@ -51,6 +48,9 @@ myResend should be set to 0 for no message resends or to an interval of your choosing. If noaacap beacons every 2 minutes, a value of 30 would provide hourly resends. +Logging values are 0 (quiet), 1 (informational), and 2 (debug). Logs are +written to the systemd journal. + USE It would be good to hear from users of this software. Please email