<reponame>Ekasy/web-server<filename>utils/logger.py<gh_stars>0
import logging


class Logger:
    def __init__(self, level):
        self._logger = logging.getLogger('logger')
        self._logger.setLevel(level.upper())
        logging.basicConfig(format='[%(asctime)s] %(message)s')

    @property
    def logger(self):
        return self._logger

import logging


class Logger:
    def __init__(self, level):
        self._logger = logging.getLogger('logger')
        self._logger.setLevel(level.upper())
        logging.basicConfig(format='[%(asctime)s] %(message)s')

    @property
    def logger(self):
        return self._logger