Actually add file >.>

This commit is contained in:
Eli Uriegas 2017-05-08 20:37:44 -07:00
parent 1fb640c313
commit 3e88ec18e2

13
sanic/default_filter.py Normal file
View File

@ -0,0 +1,13 @@
import logging
class DefaultFilter(logging.Filter):
def __init__(self, param=None):
self.param = param
def filter(self, record):
if self.param is None:
return True
if record.levelno in self.param:
return True
return False