@b_logger/logger

1.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @b_logger/logger

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

2.75 kB

Total Files

3

Last publish

Collaborators

  • birdeye_logger