awl/pkg/util/logger.go
grumbulon 3a0a8f015a
All checks were successful
continuous-integration/drone/push Build is passing
chore(Refactor) (#110)
refactor

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: #110
Reviewed-by: Sam <sam@samtherapy.net>
2022-09-24 23:11:09 +00:00

14 lines
276 B
Go

// SPDX-License-Identifier: BSD-3-Clause
package util
import "git.froth.zone/sam/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
}