Logger Middleware #

It’s a simple logger.

Import #

import { Hono } from 'hono'
import { logger } from 'hono/logger'
import { Hono } from 'https://deno.land/x/hono/mod.ts'
import { logger } from 'https://deno.land/x/hono/middleware.ts'

Usage #

const app = new Hono()

app.use('*', logger())
app.get('/', (c) => c.text('Hello Hono!'))
https://github.com/honojs/hono
© Hono developers.
Built with Hugo & Hugo Book Theme - Not Hono :)