widgetti / solara

A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps
https://solara.dev
MIT License
1.91k stars 144 forks source link

Make logging like vaex #527

Open maartenbreddels opened 9 months ago

maartenbreddels commented 9 months ago

Using vaex, it's very convenient to use logging, I propose we do something similar as in vaex:

But slightly modified (e.g. in vaex we always configure the logger framework, I think we should only do that if --log-config is not given):

Solara server using the CLI

Solara server mounted in FastAPI/Starlette

Jupyter environment

mariobuikhuizen commented 9 months ago

Would also be nice to be able to use an env var for log-config .. that's easier to set/change than the entrypoint in docker/docker-compose