1.1.0 • Published 1 year ago

netloggerconnect v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

NetLogger Connect

This library provides a simple class to connect to a NetLogger instance and output log events to that connected instance.

This requires a NetLogger instance to be set up first

Example Usage

  • Ensure NetLogger instance is running
  • Generate an appkey in NetLogger
npm install netloggerconnect

Then in code

const nlc = require("netloggerconnect");

const nl = new nlc.NetLoggerConnectWS({"server":"wss://netlogger.example.com", "appkey":"aA1bB2cC3dD4", "echo":true});

nl.info("main", "This is an info log");
nl.debug("main", "This is a debug log");
nl.error("main", "This is an error log");

setInterval(() =>
{
	nl.debug("main", "Timer log");
}, 1000);
1.1.0

1 year ago

1.0.0

1 year ago