import logging

class logger:

def info(message):
  logging.info("[INFO] "+message)
  
def warning(message):
  logging.warning("[WARNING] "+message)
  
def error(message):
  logging.error("[ERROR] "+message)
  
def debug(message):
  logging.debug("[DEBUG] "+message)
  
def critical(message)
  logging.critical("[CRITICAL] "+message)

import logging

class logger(object):

def info(self, message):
  logging.info("[INFO] "+message)
  
def warning(self, message):
  logging.warning("[WARNING] "+message)
  
def error(self, message):
  logging.error("[ERROR] "+message)
  
def debug(self, message):
  logging.debug("[DEBUG] "+message)
  
def critical(self, message)
  logging.critical("[CRITICAL] "+message)
  
  logger = logger()

Update logging.py