1.0.8 • Published 7 months ago

dz-next-log v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

dz-next-log

Next 输出日志文件 logs

Description

Then add a NODE_OPTIONS string to your Next.js start script, to require in the logger.

NODE_OPTIONS='-r dz-next-log' next start

Adding to package.json Scripts

You can add this directly to your package.json scripts, to make it easier to start your service.

"scripts": {
    "dev": "NODE_OPTIONS='-r dz-next-log' next dev",
    "build": "next build",
    "start": "NODE_OPTIONS='-r next-logger' next start"
},

Adding to dz-next-log.config.js Scripts

module.exports = {
    platform: "Webfic",
    link: 'https://www.webfic.com',
    ddUrl: "https://oapi.dingtalk.com/robot/send?access_token=7667bee5471210ebbbf0b201d20b82146b9d8a61d382315e6d6704c28d497e50",
    ddTitle: "海外【SEO】告警"
}

参考: https://github.com/sainsburys-tech/next-logger

1.0.8

7 months ago

1.0.7

1 year ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago