Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Loggin'JS - Remote Notifier
node v10.24.1
version:
1.0.0
endpoint
share
tweet
const loggin = require('loggin-js');
Create a remote logger, sends http POST request to a specified url This test uses https://webhook.site for testing the request, you can go there and generate a url.
let logger = loggin.logger('remote', { host: 'webhook.site', path: '58a91d3d-fb86-449d-98ca-3710e0867e6f', protocol: 'http' });
Now logger will notify to that endpoint.
logger.debug('Hey');
Loading…
no comments
sign in
to comment