Saving logs?

I think the duplicates are because the nature of Streamlit, it re-runs on anychange (kind of), and it might run the logger again.

Thanks, I solved the problem, by cashing the init-function. Logger, should be initialized only once!

My sollution, use multipage streamlit setup

I have a config.yaml for all related toUN5tJTZLUj1b7Lzjtz6i897.png) webgui

And then I have a script “init.logger.py”

image

And then on every page (mutlipage setup) i import this script, because otherwise if I restart streamlit and doesnt start at “page_1” it doesnt work.

image

and last, to log…
image

image