@cssynd/next-custom-logger

1.1.1 • Public • Published

Next Custom Logger

CircleCI

Because logging is important.

Setup

npm install --save @cssynd/next-custom-logger

In custom server:

const next = require('next');
const withCustomLogger = require('@cssynd/next-custom-logger');

const dev = process.env.NODE_ENV !== 'production';
const nextApp = withCustomLogger(next({ dev }), function (ctx, err) {
    // custom logger callback
    console.log(ctx);
});

... // serve start

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    1
  • 1.1.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @cssynd/next-custom-logger

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

32.5 kB

Total Files

15

Last publish

Collaborators

  • zquintana