From 1cae21ddb53726f17249cfab4df5ff65fced2f2c Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Wed, 17 Jan 2024 22:07:46 +0800 Subject: :sparkles: feat(log): new rror method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ipm/logging.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/ipm/logging.py b/src/ipm/logging.py index 2594930..08c29c4 100644 --- a/src/ipm/logging.py +++ b/src/ipm/logging.py @@ -10,3 +10,7 @@ def info(message: str, echo: bool = True) -> None: def success(message: str, echo: bool = True) -> None: return logger.success(message) if echo else None + + +def error(message: str, echo: bool = True) -> None: + return logger.error(message) if echo else None -- cgit v1.2.3-70-g09d2