scb-graylog
v1.2.2
Published
Installation npm
Downloads
75
Readme
Graylog v1.2.2
Installation npm
npm install scb-graylog
Using
TypeScript
import graylog, { appendToConsole } from "scb-graylog";
const gr = graylog.setConfig({
servers: [{ host: " 10.0.15.34", port: 1246 }],
ignoreErrors: true,
});
gr.log("some data");
// or
graylog.log("some data");
//
appendToConsole();
console.log("Logg..");
JavaScript (NodeJS)
const graylog = require("scb-graylog");
const gr = graylog.setConfig({
servers: [{ host: " 10.0.15.34", port: 1246 }],
ignoreErrors: true,
});
gr.log("some data");
// or
graylog.log("some data");