Actually add file >.>
This commit is contained in:
parent
1fb640c313
commit
3e88ec18e2
13
sanic/default_filter.py
Normal file
13
sanic/default_filter.py
Normal 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
|
Loading…
Reference in New Issue
Block a user