forked from Pavel_Durov/python_bot
Изменил(а) на 'bot.py'
This commit is contained in:
parent
bc7a2e367d
commit
f3e8454f58
13
bot.py
13
bot.py
@ -18,14 +18,17 @@ class TagFilter(logging.Filter):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(
|
||||||
|
level = logging.DEBUG,
|
||||||
|
handlers = [ graypy.GELFUDPHandler('localhost', 12201) ]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
root_logger = logging.getLogger( )
|
#root_logger = logging.getLogger( )
|
||||||
|
|
||||||
handler = graypy.GELFUDPHandler('localhost', 12201)
|
#handler = graypy.GELFUDPHandler('localhost', 12201)
|
||||||
root_logger.addHandler(handler)
|
#root_logger.addHandler(handler)
|
||||||
root_logger.addFilter(TagFilter())
|
#root_logger.addFilter(TagFilter())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user