awl/util/logger.go
Sam Therapy 49ea09a251
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
another refactor :^)
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-08-04 01:29:20 +02:00

15 lines
272 B
Go

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