absfuyu.logger module

Absfuyu: Logger

Custom Logger Module

Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)

Usage:

>>> from absfuyu.logger import logger, LogLevel
>>> logger.setLevel(LogLevel.DEBUG)
>>> logger.debug("This logs!")
absfuyu.logger.compress_for_log(object_: Any, max_visible: int | None = None) str[source]

Compress the object to be more log-readable

Parameters:
  • object – Object

  • max_visible – Maximum objects can be printed on screen

Returns:

Compressed log output

Return type:

str

class absfuyu.logger.LogLevel[source]

Bases: object

logging’s log level wrapper + custom log level

TRACE: int = 5
DEBUG: int = 10
INFO: int = 20
WARNING: int = 30
ERROR: int = 40
CRITICAL: int = 50
EXTREME: int = 60