aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-logthis
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-logthis')
-rwxr-xr-xbin/ak-logthis12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/ak-logthis b/bin/ak-logthis
index 295f60d..2ac3d80 100755
--- a/bin/ak-logthis
+++ b/bin/ak-logthis
@@ -6,25 +6,25 @@ then
then
if [ ! -z "$3" ]
then
- echo "$TS" "$1" "$2" "$3" >> $AK_LOGSFILE
+ echo "$TS" "<$1>" "[$2]" "$3" >> $AK_LOGSFILE
if [ "$AK_DEBUG" == "yes" ]
then
- echo "$TS" "$1" "$2" "$3" >&2
+ echo "$TS" "<$1>" "[$2]" "$3" >&2
fi
exit 0
else
- echo "$TS" "$1" "[ERROR]" "No message" >> $AK_LOGSFILE
+ echo "$TS" "<$1>" "[ERROR]" "No message" >> $AK_LOGSFILE
if [ "$AK_DEBUG" == "yes" ]
then
- echo "$TS" "$1" "[ERROR]" "No message" >&2
+ echo "$TS" "<$1>" "[ERROR]" "No message" >&2
fi
exit 1
fi
else
- echo "$TS" "$1" "[ERROR]" "No type and message" >> $AK_LOGSFILE
+ echo "$TS" "<$1>" "[ERROR]" "No type and message" >> $AK_LOGSFILE
if [ "$AK_DEBUG" == "yes" ]
then
- echo "$TS" "$1" "[ERROR]" "No type and message" >&2
+ echo "$TS" "<$1>" "[ERROR]" "No type and message" >&2
fi
exit 1
fi