This package is used to get logs for both client and server side. To use this package you need to add node: { fs: "empty" } in webpack.config.js.
#Install
$ npm install @b_logger/logger
#Usage
- Client side
import { sendLogs } from "@b_logger/logger";
....
componentWillMount() {
const nodeAPIUrl = "";
sendLogs(nodeAPIUrl);
}
- Server side
const logger = require("@b_logger/logger");
logger.info("print info logs");