-
Notifications
You must be signed in to change notification settings - Fork 0
Logger Levels
Ian Andretta edited this page Jul 25, 2026
·
3 revisions
Vitalogger has three built in the Logger class WARN, INFO, ERROR which lets you use to log:
Example:
logger.log("Cannot divide by zero", Logger.ERROR)
logger.log("Loaded all assets", Logger.INFO)
logger.log("Missing font file", Logger.WARN)
You can also make custom levels
NOTE: The color parameter uses ansi color codes
success_level = LoggerLevel(name="SUCCESS", color="\033[1;32m\033[1m")
logger.log(msg="Worked", logger_level=success_level)
Table of Contents