awl/pkg/util/logger.go
Sam Therapy e782c9cb23
All checks were successful
continuous-integration/drone/push Build is passing
feat: change import URL
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-17 19:18:58 +01:00

14 lines
272 B
Go

// SPDX-License-Identifier: BSD-3-Clause
package util
import "dns.froth.zone/awl/pkg/logawl"
// InitLogger initializes the logawl instance.
func InitLogger(verbosity int) (log *logawl.Logger) {
log = logawl.New()
log.SetLevel(logawl.Level(verbosity))
return log
}