netmaker/netclient/functions/logging.go

12 lines
195 B
Go
Raw Normal View History

2021-08-10 22:02:15 +08:00
package functions
import (
"log"
)
func PrintLog(message string, loglevel int) {
log.SetFlags(log.Flags() &^ (log.Llongfile | log.Lshortfile))
if loglevel == 0 {
log.Println(message)
}
}