Skip to content

Hono Logger ("hono/logger") Disable Coloring #3751

Open
@kingmesal

Description

@kingmesal

What is the feature you are proposing?

Currently the color status coding is set with this:
const isNoColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : process !== void 0 ? "NO_COLOR" in process?.env : false;

Can something be added to check it this is running in a cloudflare worker to disable coloring?

My logs spit out �[32m200�[0m 923ms, which is terrible.

The c.env could be passed in and if NO_COLOR === true then we are set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions