Skip to content

hoa-js/logger

Repository files navigation

@hoajs/logger

Logger middleware for Hoa.

Installation

$ npm i @hoajs/logger --save

Quick Start

import { Hoa } from 'hoa'
import { logger } from '@hoajs/logger'

const app = new Hoa()
app.use(logger())

app.use(async (ctx) => {
  ctx.res.body = 'Hello, Hoa!'
})

export default app

Documentation

The documentation is available on hoa-js.com

Test (100% coverage)

$ npm test

License

MIT

About

Logger middleware for Hoa.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors