i5ting / koa-generator

Koa' application generator for 1.x and 2.x( Express-style and support all middlewares include async/await )
https://github.com/17koa/koa-generator
MIT License
972 stars 110 forks source link

log4js for koa #24

Closed i5ting closed 7 years ago

i5ting commented 8 years ago

https://github.com/dominhhai/koa-log4js/tree/v2.x

它是一个不错的实现方案,感觉如果我自己写也不过如此

i5ting commented 8 years ago

log4js.configure('config/log4js.json', { reloadSecs: 300 }); app.use(log4js.koaLogger(log4js.getLogger("http"), { level: 'auto' }))