@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

Readme

Keywords

none

Package Sidebar

Install

npm i @cssynd/next-custom-logger

Weekly Downloads

2

Version

1.1.1

License

ISC

Unpacked Size

32.5 kB

Total Files

15

Last publish

Collaborators

  • zquintana