Make logging base dir configurable

This commit is contained in:
crater2150 2023-08-21 11:34:22 +02:00
parent f9bc7405a9
commit d5fa2e99de
2 changed files with 3 additions and 4 deletions

2
log
View file

@ -1,5 +1,5 @@
#!/bin/zsh
SERVICE=${0:a:h:h:t}
LOGDIR=$HOME/.local/log/$SERVICE
LOGDIR=${SVLOGDIR:-$HOME/.local/log}/$SERVICE
mkdir -p $LOGDIR
exec svlogd -ttt $LOGDIR