Skip to content

Settings of LoggerUi can't be changed dynamically at runtime #35

@Vickerinox

Description

@Vickerinox

Expected Behaviour

Each call to LoggerUi::show should respect the parameters of the invoking object. Enabling there to be changes of the style and colors at runtime.

Actual Behaviour

Calls to LoggerUi::show are deffered to the LOGGER_UI static variable. Meaning every LoggerUi will use the style and colors of the object that invoked the first call to show.

Steps to reproduce

put egui_logger = "=0.7.0" into Cargo.toml, and create an app where the argument to eg. LoggerUi::warn_color can be changed. No matter the change, the logger ui will always look as it did when the logger was first shown at the start of the program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions