@d2sutils/logging
v1.0.9
Published
## Description This is a simple logging service that logs, save log in MongoDB and retrieve logs from MongoDB.
Downloads
42
Readme
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");