diff --git a/logmagix/logger.py b/logmagix/logger.py index 0a67442..853b7a3 100644 --- a/logmagix/logger.py +++ b/logmagix/logger.py @@ -9,7 +9,7 @@ from pystyle import Write, System, Colors class Logger: - def __init__(self, prefix: str = "discord.cyberious.xyz"): + def __init__(self, prefix: str | None = "discord.cyberious.xyz"): self.WHITE = "\u001b[37m" self.MAGENTA = "\033[38;5;97m" self.MAGENTAA = "\033[38;2;157;38;255m" @@ -19,7 +19,7 @@ def __init__(self, prefix: str = "discord.cyberious.xyz"): self.BLUE = "\033[38;5;21m" self.PINK = "\033[38;5;176m" self.CYAN = "\033[96m" - self.prefix = f"{self.PINK}[{self.MAGENTA}{prefix}{self.PINK}] " + self.prefix = f"{self.PINK}[{self.MAGENTA}{prefix}{self.PINK}] " if prefix else f"{self.PINK}" def get_time(self) -> str: return datetime.datetime.now().strftime("%H:%M:%S") diff --git a/setup.py b/setup.py index 45f8535..3279bbb 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="logmagix", - version="1.10.2", + version="1.10.3", packages=find_packages(), install_requires=["colorama"], author="Sexfrance", diff --git a/test.py b/test.py index b95a588..517da22 100644 --- a/test.py +++ b/test.py @@ -3,7 +3,7 @@ import time import uuid -log = Logger(prefix="custom/log/prefix") +log = Logger(prefix=None) start_time = time.time() # Log messages