Sam
07728cffdb
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #55
14 lines
272 B
Go
14 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
|
|
}
|