globals: Add a logbook based logger.

This commit is contained in:
Damir Jelić 2018-12-12 13:09:03 +01:00
parent 5b6fc50877
commit ab2ba0f9ae

View file

@ -18,6 +18,7 @@ from __future__ import unicode_literals
import sys
from typing import Dict, Optional
from logbook import Logger
from .utf import WeechatWrapper
@ -41,3 +42,4 @@ ENCRYPTION = True # type: bool
SCRIPT_NAME = "matrix" # type: str
MAX_EVENTS = 100
TYPING_NOTICE_TIMEOUT = 4000 # 4 seconds typing notice lifetime
LOGGER = Logger("weechat-matrix")