<reponame>DigiDuncan/dynamicbot<filename>dynamicbot/lib/loglevels.py
from digiformatter import logger as digilogger

BANNER = None
LOGIN = None
EGG = None
CMD = None
ROYALE = None


def create_log_levels():
    global BANNER, LOGIN, EGG, CMD, ROYALE
    BANNER = digilogger.addLogLevel("banner", fg="orange_red_1", bg="deep_sky_blue_4b", attr="bold", showtime = False)
    LOGIN = digilogger.addLogLevel("login", fg="cyan")
    EGG = digilogger.addLogLevel("egg", fg="magenta_2b", bg="light_yellow", attr="bold", prefix="EGG")
    CMD = digilogger.addLogLevel("cmd", fg="grey_50", base="DEBUG", prefix="CMD")
    ROYALE = digilogger.addLogLevel("royale", fg="cyan", base="DEBUG", prefix="ROYALE")


create_log_levels()

from digiformatter import logger as digilogger

BANNER = None
LOGIN = None
EGG = None
CMD = None
ROYALE = None


def create_log_levels():
    global BANNER, LOGIN, EGG, CMD, ROYALE
    BANNER = digilogger.addLogLevel("banner", fg="orange_red_1", bg="deep_sky_blue_4b", attr="bold", showtime = False)
    LOGIN = digilogger.addLogLevel("login", fg="cyan")
    EGG = digilogger.addLogLevel("egg", fg="magenta_2b", bg="light_yellow", attr="bold", prefix="EGG")
    CMD = digilogger.addLogLevel("cmd", fg="grey_50", base="DEBUG", prefix="CMD")
    ROYALE = digilogger.addLogLevel("royale", fg="cyan", base="DEBUG", prefix="ROYALE")


create_log_levels()