Add proper logfile support
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Melody Becker 2025-04-08 17:29:28 +02:00
parent 28a4f4121e
commit 98191fd098
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
7 changed files with 112 additions and 11 deletions

View file

@ -25,6 +25,11 @@ var (
false,
"Also start the local debugging server",
)
FlagLogFile *string = flag.String(
"logfile",
"/var/log/linstrom/logs",
"Set the target logging file. Linstrom auto-rotates these. If it can't be created, it will be ignored",
)
)
func flagUsage() {
@ -50,5 +55,5 @@ func flagUsage() {
}
func init() {
flag.Usage = flagUsage
// flag.Usage = flagUsage
}