mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 17:42:57 +08:00
12 lines
No EOL
195 B
Go
12 lines
No EOL
195 B
Go
package functions
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func PrintLog(message string, loglevel int) {
|
|
log.SetFlags(log.Flags() &^ (log.Llongfile | log.Lshortfile))
|
|
if loglevel == 0 {
|
|
log.Println(message)
|
|
}
|
|
} |