Update the documentation

The README file is lying yet.
This commit is contained in:
2017-01-16 08:28:26 +01:00
parent 60ff70de04
commit 67e73a02c5
2 changed files with 70 additions and 1 deletions

View File

@@ -53,7 +53,11 @@ def register_logger_class(cls=FlaskExtraLogger):
"""
Register a new logger class
It is effectively a wrapper around logging.setLoggerClass().
It is effectively a wrapper around logging.setLoggerClass(), with an
added check to make sure the class can be used as a logger.
To use the extra features of the logger class in a Flask app, you must
call it before the app is instantiated.
"""
if not issubclass(cls, logging.Logger):