diff --git a/CHANGES.rst b/CHANGES.rst index 3b96fd2..2197ea9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,7 @@ Changelog v0.2.0 (2015-01-22) ------------------- -- Make ``LogConfig.init_app`` accept custom handler and listener classes via ``handler_class`` and ``listener_class`` arguments. +- Make ``LogConfig`` and ``LogConfig.init_app`` accept custom handler and listener classes via ``handler_class`` and ``listener_class`` arguments. v0.1.0 (2014-12-24) diff --git a/flask_logconfig/__init__.py b/flask_logconfig/__init__.py index dee8d04..94ce989 100644 --- a/flask_logconfig/__init__.py +++ b/flask_logconfig/__init__.py @@ -31,7 +31,11 @@ class LogConfig(object): """Flask extension for configuring Python's logging module from application's config object. """ - def __init__(self, app=None, start_listeners=True): + def __init__(self, + app=None, + start_listeners=True, + handler_class=FlaskQueueHandler, + listener_class=logconfig.QueueListener): self.app = app self.listeners = {}