From: Roman Bazalevsky Date: Fri, 26 Oct 2018 08:49:49 +0000 (+0300) Subject: Добавлены варианты протоколирования. X-Git-Url: https://git.rvb.name/openhab-process.git/commitdiff_plain/8fe147a0d4dcef595bc76407cc7b62577de00f88?hp=--cc Добавлены варианты протоколирования. --- 8fe147a0d4dcef595bc76407cc7b62577de00f88 diff --git a/mqtt-bt/scan-beacons b/mqtt-bt/scan-beacons index 192539e..fcd3c20 100644 --- a/mqtt-bt/scan-beacons +++ b/mqtt-bt/scan-beacons @@ -65,7 +65,10 @@ end function printLog(str) if logging=="yes" then capture("logger -t beaconmon \""..str.."\"") - else + print(str) + elseif logging=="syslog" then + capture("logger -t beaconmon \""..str.."\"") + elseif logging=="stdout" then print(str) end end