Hi, I’d like to set time intervals between several Dash loggers.
but all the loggers just keep popping up simultaneously.
for example, just an simplified code:
import dash_mantine_components as dmc from dash_extensions.enrich import Output, Input, html, DashProxy, LogTransform, DashLogger import time app = DashProxy(transforms=[LogTransform()], prevent_initial_callbacks=True) app.layout = html.Div([dmc.Button("Run", id="btn"), dmc.Text(id="txt")]) @app.callback(Output("txt", "children"), Input("btn", "n_clicks"), log=True) def do_stuff(n_clicks, dash_logger: DashLogger): dash_logger.info("first info") time.sleep(5) dash_logger.info("second info") return '/' if __name__ == '__main__': app.run_server()
My goal is to pop up “first info”, then wait 5 seconds, and then pop up “second info”
but somehow two loggers pop up together… I don’t get it.
Is there any solutions for this issue?