UNPKG
iss-gateway
Version:
latest (0.0.8)
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
ISS Gateway for Domoticz
github.com/spawnrider/iss-gateway
spawnrider/iss-gateway
iss-gateway
/
helpers
/
logging.js
13 lines
(8 loc)
•
182 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
nconf =
require
(
'nconf'
);
var
logging = {}; logging.
log
=
function
(
message
) {
if
(nconf.
get
(
'debug'
) ===
true
) {
console
.
log
(message); } };
module
.
exports
= logging;