feat: aptss logger

feat: Now we only popup window for once
This commit is contained in:
2024-11-28 23:47:03 +08:00
parent 8d06c37e96
commit e2118a471f
3 changed files with 13 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/bash
log.warn() { echo -e "[\e[33mWARN\e[0m]: \e[1m$*\e[0m"; }
log.error() { echo -e "[\e[31mERROR\e[0m]: \e[1m$*\e[0m"; exit 1; }
log.info() { echo -e "[\e[96mINFO\e[0m]: \e[1m$*\e[0m"; }
log.debug() { echo -e "[\e[32mDEBUG\e[0m]: \e[1m$*\e[0m"; }