diff --git a/flags.go b/flags.go index 7009970..9a54a81 100644 --- a/flags.go +++ b/flags.go @@ -120,6 +120,9 @@ func (f *LogFlag) Register() { defer flagsMutex.Unlock() Info("log.Register() ", f) f.Default = f.B + if f.Short == "" { + f.Short = f.Subsystem + } flags = append(flags,f) } diff --git a/log.go b/log.go index 9f07af3..1382816 100644 --- a/log.go +++ b/log.go @@ -34,7 +34,7 @@ func Log(x any, a ...any) { if ! f.B { return } - a = append([]any{f.Subsystem}, a...) + a = append([]any{f.Short}, a...) origlog.Println(a...) default: a = append([]any{x}, a...)