Sam Therapy
e782c9cb23
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
14 lines
272 B
Go
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
|
|
}
|