import logging
import logging.config
import tempfile


class Logger:
    def __init__(self):
        temp_dir = tempfile.gettempdir()
        path_and_file_name = temp_dir+"\process_killer.log"
        logging.basicConfig(format="[ %(asctime)s %(levelname)s]: %(message)s",
                            filename=path_and_file_name, filemode="w", level=logging.DEBUG)

    def info(self, value):
        logging.info(value)

    def debug(self, value):
        logging.debug(value)

    def warn(self, value):
        logging.warning(value)

    def error(self, value):
        logging.error(value)

    def critical(self, value):
        logging.critical(value)


log = Logger()

import logging
import logging.config
import tempfile


class Logger:
    def __init__(self):
        temp_dir = tempfile.gettempdir()
        path_and_file_name = temp_dir+"\process_killer.log"
        logging.basicConfig(format="[ %(asctime)s %(levelname)s]: %(message)s",
                            filename=path_and_file_name, filemode="w", level=logging.DEBUG)

    def info(self, value):
        logging.info(value)

    def debug(self, value):
        logging.debug(value)

    def warn(self, value):
        logging.warning(value)

    def error(self, value):
        logging.error(value)

    def critical(self, value):
        logging.critical(value)


log = Logger()
