start a log.Register() method

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-12-31 09:55:02 -06:00
parent 3410280bd7
commit ae26163393
1 changed files with 6 additions and 0 deletions

6
log.go
View File

@ -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)
}