1.0.2 • Published 6 years ago

@gslogr/l v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

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 @gslogr/l

#Usage

  • Client side
import { sendLogs } from "@gslogr/l";


....
componentWillMount() {
    const nodeAPIUrl = "";
    sendLogs(nodeAPIUrl);
}
  • Server side
const logger = require("@gslogr/l");
logger.info("print info logs");
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago