Flask-logconfig

Latest version: v0.4.2

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.2

-------------------

- Fix bug in application lookup where ``None`` would be returned instead of the application instance when extension was previously initialized with an application instance passed in.

0.4.1

-------------------

- Fix issue where an extra request context stack was created during ``reqest_context_from_record()`` call.

0.4.0

-------------------

- Add ``execution_time`` to log's extra data and request message data.
- Rename ``FlaskLogConfig.after_request_handler`` to ``FlaskLogConfig.after_request``. **(possible breaking change)**
- Rename ``FlaskLogConfig.get_request_msg_data`` to ``FlaskLogConfig.get_request_message_data``. **(possible breaking change)**
- Rename ``FlaskLogConfig.make_request_msg`` to ``FlaskLogConfig.make_request_message``. **(possible breaking change)**

0.3.1

-------------------

- Add metadata to main module:

- ``__title__``
- ``__summary__``
- ``__url__``
- ``__version__``
- ``__author__``
- ``__email__``
- ``__license__``

0.3.0

-------------------

- Add support for logging all requests.
- Don't store any application specific state on ``LogConfig`` class. Move ``LogConfig.listeners`` access to ``LogConfig.get_listeners``. **(breaking change)**
- Make ``LogConfig.__init__`` and ``LogConfig.init_app`` accept custom queue class via ``queue_class`` argument.
- Make ``LogConfig.start_listeners()`` and ``LogConfig.stop_listeners()`` accept optional ``app`` argument to access listeners associated with that app. If no ``app`` passed in, then ``flask.current_app`` will be accessed.
- Rename supported configuration keys from ``LOGGING`` and ``LOGGING_QUEUE``to ``LOGCONFIG`` and ``LOGCONFIG_QUEUE`` respectively. **(breaking change)**

0.2.0

-------------------

- Make ``LogConfig.__init__`` and ``LogConfig.init_app`` accept custom handler and listener classes via ``handler_class`` and ``listener_class`` arguments.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.