jrf-graylog
Description
A package that implements the udp
logging client for Graylog
Example
const Graylog = ; const graylog = address: 'graylog.server.address' host: 'my-web-project.com' node: 'dev.log.test' compress: false; graylog;graylog;graylog;graylog;graylog;graylog; graylog; let error;try throw 'test error'; catch e error = e;graylog;graylog; graylog;graylog;graylog;graylog;graylog;graylog;
Levels
graylog.level[levelNameUppercase]
code | name | description |
---|---|---|
0 | emergency | system is unusable |
1 | alert | action must be taken immediately |
2 | critical | critical conditions |
3 | error | error conditions |
4 | warning | warning conditions |
5 | notice | normal, but significant, condition |
6 | info | informational message |
7 | debug | debug level message |
Constructor
name | type | default | description |
---|---|---|---|
port | number | 12201 | port on server |
address | string | localhost | Address Graylog server |
host | string | client hostname | |
node | string | node | client node name |
defaultLevel | string/number/Object | INFO | default log level |
compress | boolean | true | log data compression |