KDD-OpenSource / 32de-python

Server component of graph exploration tool with meta-paths

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup and use logging for server

Baschdl opened this issue · comments

The server does not support debug logging, yet. This should be implemented.

AS A Developer I WOULD like to be able to view debug outputs in a log file of a running server SO THAT access to the stdout is not necessary and debugging is possible.

I wouldn't use 'instead' here - printing important things on the console is a good thing and suggested by python
Still, importing the logger and setting up levels for less important but useful debug messages would be good.

I don't see where python suggests this. Do you mean this table?

Task you want to perform The best tool for the task
Display console output for ordinary usage of a command line script or program print()

This is especially focused on command line programs.
I think our system will be rather complex in the end, so it would be good to have a organised printing/logging from the beginning.