app.use(function (ctx, next) { ctx.log.info(‘Got a request from %s for %s‘, ctx.request.ip, ctx.path); return next(); });
Koa2 学习文档 (不错我觉得)
https://blog.csdn.net/pingsoli/article/details/76584093
log4js 输出 等于 console.info
原文地址:https://www.cnblogs.com/pengchenggang/p/10844219.html
时间: 2024-10-07 08:30:58