在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:pinojs/pino开源软件地址:https://github.com/pinojs/pino开源编程语言:JavaScript 91.5%开源软件介绍:pinoVery low overhead Node.js logger. Documentation
Install
If you would like to install pino v6, refer to https://github.com/pinojs/pino/tree/v6.x. Usageconst logger = require('pino')()
logger.info('hello world')
const child = logger.child({ a: 'property' })
child.info('hello child!') This produces:
For using Pino with a web framework see:
EssentialsDevelopment FormattingThe Transports & Log ProcessingDue to Node's single-threaded event-loop, it's highly recommended that sending, alert triggering, reformatting and all forms of log processing be conducted in a separate process or thread. In Pino terminology we call all log processors "transports", and recommend that the
transports be run in a worker thread using our For more details see our Transports⇗ document. Low overheadUsing minimum resources for logging is very important. Log messages tend to get added over time and this can lead to a throttling effect on applications – such as reduced requests per second. In many cases, Pino is over 5x faster than alternatives. See the Benchmarks document for comparisons. Bundling supportPino supports to being bundled using tools like webpack or esbuild. See Bundling document for more informations. The TeamMatteo Collinahttps://www.npmjs.com/~matteo.collina https://twitter.com/matteocollina David Mark Clementshttps://github.com/davidmarkclements https://www.npmjs.com/~davidmarkclements https://twitter.com/davidmarkclem James Sumnershttps://www.npmjs.com/~jsumners https://twitter.com/jsumners79 Thomas Watson SteenContributingPino is an OPEN Open Source Project. This means that:
See the CONTRIBUTING.md file for more details. AcknowledgementsThis project was kindly sponsored by nearForm. Logo and identity designed by Cosmic Fox Design: https://www.behance.net/cosmicfox. LicenseLicensed under MIT. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论