UNPKG
winston-zabbix
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
Zabbix transport for Winston log utility.
winston-zabbix
/
example.js
7 lines
(4 loc)
•
207 B
JavaScript
View Raw
1
2
3
4
5
6
7
var
winston =
require
(
'winston'
);
require
(
'./src/app'
).Zabbix; winston.
add
(winston.transports.Zabbix, {
"host"
:
"127.0.0.1"
,
"level"
:
"debug"
,
key
:
"test"
}); winston.
log
(
"error"
,
"Hello"
,
"World"
);