mutalyzer / mutalyzer2

HGVS variant nomenclature checker
https://mutalyzer.nl
Other
98 stars 23 forks source link

Use the `logging` module for logging. #125

Open jfjlaros opened 8 years ago

jfjlaros commented 8 years ago

The title is quite self-explanatory.

martijnvermaat commented 8 years ago

Related reading:

martijnvermaat commented 8 years ago

SQLAlchemy Documentation: Configuring Logging

We currently configure the SQLAlchemy engine with echo=True if the Mutalyzer DEBUG setting is True. As per the above docs, we should probably always set echo=False (and set the loglevel for sqlalchemy.engine appropriately) if we start using Python logging properly.

martijnvermaat commented 8 years ago

Flask Documentation: Logging Application Errors

Flask has its own logger on the app object. See:

martijnvermaat commented 8 years ago

Example of adding context information to our log messages (e.g., client IP address from the Flask request context): Adding context and formatting to our logs