awl/util/logger.go
Sam Therapy 07728cffdb
All checks were successful
continuous-integration/drone/push Build is passing
(feat)EDNS (#55)
Reviewed-on: #55
2022-08-04 01:09:49 +00: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
}