open-index/open-npm huggingface dataset:
npm package: @marianoleonardo/dojot-module-logger
Description: A simple configurable logger for dojot modules
Author: Felipe Muhamed Avila, Giovanni Curiel dos Santos
Latest version: 0.1.1

dojot-module-logger
===================

This component is a simple logger, based on [winston](https://github.com/winstonjs/winston), that
offers an endpoint to be added to an Express application.

# How to use

It's simple. Just import it and use it: 

```javascript
   const DojotLogger = require("@dojot/dojot-module-logger-nodejs");
   DojotLogger.logger.debug("This is an example", {filename: "my_module"});
```

You can change its current log level by calling:

```javascript
   DojotLogger.logger.setLevel("info");
```

You should definitely check out [winston
documentation](https://github.com/winstonjs/winston) for more information about
how to use it.

You can add an endpoint to your component as well:

```javascript

   var bodyParser = require("body-parser");
   var express = require("express");
   var app = express();

   app.use(bodyParser.json());
   app.use(DojotLogger.getHTTPRouter());
   app.listen(10001, () => {
       DojotLogger.logger.info(`Listening on port 10001.`);
   });

```

Thus you can call:

```bash

   curl -X PUT http://localhost:10001/log -H "Content-Type:application/json" -d '{"level" : "debug"}'

```
to change current log level. Currently supported levels are:

- debug
- info
- warn
- error

In order to get current log level, just send a GET request to the same endpoint:

```bash

   curl -X GET http://localhost:10001/log 

```
npm package: @marianoleonardo/healthcheck
Description: healthcheck library for modules
Author: Giovanni Curiel dos Santos
Latest version: 0.1.1

# About

This library aims to standardize the health check messages reported by
dojot's microservices. It follows the specification [draft-inadarei-api-health-check-02]("https://tools.ietf.org/html/draft-inadarei-api-health-check-02").

Although developed to be used in the dojot's services, it is a generic libary and 
can be used in any microservice.
npm package: @marianoleonardo/microservice-sdk
Description: A SDK to help to build microservices for the dojot platform
Author: Rafael Augusto Scaraficci
Latest version: 0.3.0-beta.0

# Microservice SDK [![DeepScan grade](https://deepscan.io/api/teams/2690/projects/13298/branches/219450/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=2690&pid=13298&bid=219450) [![CodeFactor](https://www.codefactor.io/repository/github/dojot/dojot-microservice-sdk-js/badge)](https://www.codefactor.io/repository/github/dojot/dojot-microservice-sdk-js) [![codecov](https://codecov.io/gh/dojot/dojot-microservice-sdk-js/branch/master/graph/badge.svg)](https://codecov.io/gh/dojot/dojot-microservice-sdk-js) [![npm version](https://badge.fury.io/js/%40dojot%2Fmicroservice-sdk.svg)](https://badge.fury.io/js/%40dojot%2Fmicroservice-sdk)

This NodeJS module aims to help developers to build microservices in the dojot's context. It
provides utility modules that most of the dojot's microservices needs to implement.

__NOTE THAT__ this module does not intend to be a generic microservice SDK, but a library scoped to
attend the dojot microservices necessities.

# Table of Contents

- Modules
  - [Configuration Manager](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/lib/configManager/README.md)
  - [Kafka Handlers](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/lib/kafka/README.md)
  - [Logger](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/lib/logging/README.md)
  - [Service State Manager](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/lib/serviceStateManager/README.md)
  - [Backend Web Utils](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/lib/webUtils/README.md)
  - [Local Persistence](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/lib/localPersistence/README.md)
- Examples
  - [Configuration Manager](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/configManager/README.md)
  - [Kafka's Consumer (Sync Commit)](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/consumer/README.md)
  - [Kafka's Consumer (Async Commit)](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/asyncConsumer/README.md)
  - [Kafka's Producer](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/producer/README.md)
  - [Logger](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/logging/README.md)
  - [Service State Manager](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/serviceStateManager/README.md)
  - [Backend Web Utils](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/webUtils/README.md)
  - [Local Persistence (Use Cases)](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/localPersistence/samples/README.md)
  - [Local Persistence (Sample Service)](https://github.com/dojot/dojot-microservice-sdk-js/blob/master/examples/localPersistence/minidevicemanager/README.md)