import logging
import sys

LOG_LEVEL = logging.DEBUG
FORMAT = '%(asctime)s - %(levelname)s - %(name)s - %(message)s'
logging.basicConfig(format=FORMAT, level=LOG_LEVEL)


class QChatLogger:
    def __init__(self, name):
        self.logger = logging.getLogger(name)

    def warning(self, message):
        self.logger.warning(message)

    def info(self, message):
        self.logger.info(message)

    def debug(self, message):
        self.logger.debug(message)

    def error(self, message):
        self.logger.error(message)