archive
This commit is contained in:
18
MovieNight/common/logging_dev.go
Executable file
18
MovieNight/common/logging_dev.go
Executable file
@@ -0,0 +1,18 @@
|
||||
// +build dev
|
||||
|
||||
package common
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
var logDev *log.Logger = log.New(os.Stdout, "[DEV]", log.LstdFlags)
|
||||
|
||||
func LogDevf(format string, v ...interface{}) {
|
||||
logDev.Printf(format, v...)
|
||||
}
|
||||
|
||||
func LogDevln(v ...interface{}) {
|
||||
logDev.Println(v...)
|
||||
}
|
||||
Reference in New Issue
Block a user