1.1.1 • Published 3 years ago

@cssynd/next-custom-logger v1.1.1

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

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
1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago