Skip to content

Commit

Permalink
Add handler_class and listener_class arguments to LogConfig.__init__.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilland committed Jan 23, 2015
1 parent 2e3adf3 commit e9ee8bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion flask_logconfig/__init__.py
Expand Up @@ -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 = {}

Expand Down

0 comments on commit e9ee8bb

Please sign in to comment.