diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-05-27 11:17:18 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-05-27 11:17:18 +0300 |
commit | 831ff1cdcac0bf5f75a6832dffda30b6b292e751 (patch) | |
tree | c7f49097b42fd9220e3a27d3bf274dc4e43cbe26 /lib/_ak_log | |
parent | f1e69ce22cd2e3ad3e1d1ccbc296c9c98ede3dc2 (diff) | |
download | arching-kaos-tools-831ff1cdcac0bf5f75a6832dffda30b6b292e751.tar.gz arching-kaos-tools-831ff1cdcac0bf5f75a6832dffda30b6b292e751.tar.bz2 arching-kaos-tools-831ff1cdcac0bf5f75a6832dffda30b6b292e751.zip |
Interface update
Diffstat (limited to 'lib/_ak_log')
-rwxr-xr-x | lib/_ak_log | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/_ak_log b/lib/_ak_log index e06051b..242bb27 100755 --- a/lib/_ak_log +++ b/lib/_ak_log @@ -4,6 +4,22 @@ logit(){ ak-log-message "$PROGRAM" "$1" "$2" } +_ak_log_warning(){ + ak-log-message "$PROGRAM" "WARNING" "$1" +} + +_ak_log_debug(){ + ak-log-message "$PROGRAM" "DEBUG" "$1" +} + +_ak_log_error(){ + ak-log-message "$PROGRAM" "ERROR" "$1" +} + +_ak_log_info(){ + ak-log-message "$PROGRAM" "INFO" "$1" +} + _ak_log_follow(){ tail -f $AK_LOGSFILE | while read -r p || [ -n "$p" ] do |