@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");

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.9
    32
    • latest

Version History

Package Sidebar

Install

npm i @d2sutils/logging

Weekly Downloads

35

Version

1.0.9

License

ISC

Unpacked Size

58 kB

Total Files

85

Last publish

Collaborators

  • dev2studio