diff options
| author | 2024-01-17 22:07:46 +0800 | |
|---|---|---|
| committer | 2024-01-17 22:07:46 +0800 | |
| commit | 1cae21ddb53726f17249cfab4df5ff65fced2f2c (patch) | |
| tree | 3c6537935d1437504f6f9f0f787b1400d68515fc | |
| parent | 0fae9e4227b9557f0c159892ae0c9bb383aba651 (diff) | |
| download | ipm-1cae21ddb53726f17249cfab4df5ff65fced2f2c.tar.gz ipm-1cae21ddb53726f17249cfab4df5ff65fced2f2c.zip | |
:sparkles: feat(log): new rror method
| -rw-r--r-- | src/ipm/logging.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
