@d2sutils/logging
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

LOGGING SERVICES

Description

This is a simple logging service that logs, save log in MongoDB and retrieve logs from MongoDB.

Installation

npm install 
import {configureLogger} from "@d2sutils/logging";

configureLogger(config.proxy, config.name);
  • config.proxy is the proxy to use for the logging service URL
  • config.name is the name of the service

Add log

import { addLog } from "@d2sutils/logging";

addLog("This is a test log","info");

Readme

Keywords

none

Package Sidebar

Install

npm i @d2sutils/logging

Weekly Downloads

3

Version

1.0.9

License

ISC

Unpacked Size

58 kB

Total Files

85

Last publish

Collaborators

  • dev2studio