diff --git a/docs/middleware/builtin/logger.md b/docs/middleware/builtin/logger.md index 0b3780a5..7732a806 100644 --- a/docs/middleware/builtin/logger.md +++ b/docs/middleware/builtin/logger.md @@ -31,6 +31,11 @@ By using the Logger Middleware, you can easily monitor the flow of requests and You can also extend the middleware further by providing your own `PrintFunc` function for tailored logging behavior. +::: tip + +To disable _status code coloring_, you can set a `NO_COLOR` environment variable. This is a common way to disable ANSI color escape codes in logging libraries, and is described at . Note that CloudFlare Workers do not have a `process.env` object, so will default to plaintext log output. +::: + ## PrintFunc The Logger Middleware accepts an optional `PrintFunc` function as a parameter. This function allows you to customize the logger and add additional logs. diff --git a/docs/middleware/third-party.md b/docs/middleware/third-party.md index 82d2491d..6daa5ddb 100644 --- a/docs/middleware/third-party.md +++ b/docs/middleware/third-party.md @@ -47,3 +47,4 @@ Most of this middleware leverages external libraries. - [Geo](https://github.com/ktkongtong/hono-geo-middleware/tree/main/packages/middleware) - [Hono Simple DI](https://github.com/maou-shonen/hono-simple-DI) - [Highlight.io](https://www.highlight.io/docs/getting-started/backend-sdk/js/hono) +- [Pino logger](https://github.com/maou-shonen/hono-pino)