diff --git a/yasmin/include/yasmin/yasmin_logs.hpp b/yasmin/include/yasmin/yasmin_logs.hpp index 81d679f..93bc298 100644 --- a/yasmin/include/yasmin/yasmin_logs.hpp +++ b/yasmin/include/yasmin/yasmin_logs.hpp @@ -8,5 +8,7 @@ fprintf(stderr, "[WARN] " text "\n", ##__VA_ARGS__) #define YASMIN_LOG_INFO(text, ...) \ fprintf(stderr, "[INFO] " text "\n", ##__VA_ARGS__) +#define YASMIN_LOG_DEBUG(text, ...) \ + fprintf(stderr, "[DEBUG] " text "\n", ##__VA_ARGS__) #endif \ No newline at end of file diff --git a/yasmin/yasmin/yasmin_logs.py b/yasmin/yasmin/yasmin_logs.py index d96db9e..224f661 100644 --- a/yasmin/yasmin/yasmin_logs.py +++ b/yasmin/yasmin/yasmin_logs.py @@ -17,16 +17,20 @@ import logging # Define the logging configuration -logging.basicConfig(level=logging.DEBUG, format="%(message)s") +logging.basicConfig(level=logging.NOTSET, format="%(message)s") -def YASMIN_LOG_ERROR(text, *args): +def YASMIN_LOG_ERROR(text: str, *args) -> None: logging.error("[ERROR] " + text, *args) -def YASMIN_LOG_WARN(text, *args): +def YASMIN_LOG_WARN(text: str, *args) -> None: logging.warning("[WARN] " + text, *args) -def YASMIN_LOG_INFO(text, *args): +def YASMIN_LOG_INFO(text: str, *args) -> None: logging.info("[INFO] " + text, *args) + + +def YASMIN_LOG_DEBUG(text: str, *args) -> None: + logging.info("[DEBUG] " + text, *args)