Skip to content

"%c" in web logging #4529

@droogmic

Description

@droogmic

Problem

Logging in development mode for web includes "%c", presumably instead of the ANSI coloring codes.

16:22:36 [server]  INFO Foo Bar
16:22:47 [web] %cINFO%c web/src/lib.rs:103%c Bar Foo

I can see this is not a new issue: #3554

Steps To Reproduce

Use tracing with standard templates.

Expected behavior

16:22:36 [server]  INFO Foo Bar
16:22:47 [web] INFO web/src/lib.rs:103 Bar Foo

Coloring would be nice to have.

Screenshots

Image

Environment:

  • Dioxus version: v0.6.3
  • Rust version: 1.88.0 stable
  • OS info: Linux 6.1.146
  • App platform: Web

Questionnaire

I'm interested in fixing this myself but don't know where to start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions