Hi,
I am running a Bokeh app via the bokeh serve command. I would like to monitor the connections to the server to have statistics about the way my app is used. Is there a simple way to record the connections logs?
But if there is a more appropriated way to record connections statistics, I am still interested!
Julien
···
Le vendredi 21 avril 2017 14:27:36 UTC+2, Julien Jouganous a écrit :
Hi,
I am running a Bokeh app via the bokeh serve command. I would like to monitor the connections to the server to have statistics about the way my app is used. Is there a simple way to record the connections logs?
If you have thoughts they'd be welcome to share there.
Thanks,
Bryan
···
On Apr 21, 2017, at 09:11, Julien Jouganous <[email protected]> wrote:
Finally, I came out with a better solution :
bokeh serve --show myapp.py >> log.txt 2>&1
But if there is a more appropriated way to record connections statistics, I am still interested!
Julien
Le vendredi 21 avril 2017 14:27:36 UTC+2, Julien Jouganous a écrit :
Hi,
I am running a Bokeh app via the bokeh serve command. I would like to monitor the connections to the server to have statistics about the way my app is used. Is there a simple way to record the connections logs?
I tried to add to my code
import
sys
sys
.stdout=open("logs.txt","w")
... my code ...
sys.stdout.close()
and also to run my code with:
bokeh serve --show myapp.py > logs.txt
None of these solutions worked.
Thanks!