From ae261633933db2a4870a8556dd4ed11727adc6b7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Dec 2023 09:55:02 -0600 Subject: [PATCH] start a log.Register() method Signed-off-by: Jeff Carr --- log.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/log.go b/log.go index 6a5151f..e22b24b 100644 --- a/log.go +++ b/log.go @@ -81,3 +81,9 @@ func Fatalf(s string, a ...any) { func Fatal(s string, a ...any) { origlog.Fatalf(s, a...) } + +// register a variable name from a subsystem +// this is used for custom log flags +func Register(subsystem string, name string) { + Info("log.Register() got subsystem", subsystem, "with name =", name) +}