1.0.5 • Published 2 years ago

x-log-client v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

X-Log

The task of this library is to facilitate the use of the X-Log api with node js. The API key and further information can be found at log.x46.me.

Quickstart

1. Install

npm install x-log-client

2. run

const xlog = require('x-log-client');
var logger = new xlog("api key", "project id");

logger.log("Start");

logger.log("Error", 2, "An error has occurred");

API

new xlog(string, string, boolean);
1stringyour api key
2stringthe public project id
3booleanuse https for request (optional)
.log(string, number, string);
1stringmain text to log
2numbertypes of messages, the default is 0 (optional)
3stringan additional text (optional)

Types of messages

typemeaning
0default message
1warning message
2Error message
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago