All checks were successful
continuous-integration/drone/push Build is passing
Close #12 Reviewed-on: #23 Co-authored-by: grumbulon <grumbulon@grumbulon.xyz> Co-committed-by: grumbulon <grumbulon@grumbulon.xyz>
14 lines
179 B
Go
14 lines
179 B
Go
package util
|
|
|
|
import "git.froth.zone/sam/awl/logawl"
|
|
|
|
func InitLogger(debug bool) (Logger *logawl.Logger) {
|
|
Logger = logawl.New()
|
|
|
|
if debug {
|
|
Logger.SetLevel(3)
|
|
}
|
|
|
|
return
|
|
}
|