koaman-logger
v1.0.2
Published
## Install
Downloads
4
Readme
koaman-logger
Install
npm i koaman-logger
# or
yarn add koaman-logger
How to use
const Koa = require('koa')
const logger = require('koaman-logger')
const app = new Koa()
app.use(logger({ path: __dirname }))
app.use(async ctx => {
ctx.logger.trace('Hello World')
ctx.body = 'Hello World'
})
app.listen(3000)