mirror of https://github.com/EasyDarwin/EasyDarwin
27 lines
318 B
Go
27 lines
318 B
Go
// +build !release
|
|
|
|
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
func Log(msg ...interface{}) {
|
|
log.Output(2, fmt.Sprintln(msg...))
|
|
}
|
|
|
|
func Logf(format string, msg ...interface{}) {
|
|
log.Output(2, fmt.Sprintf(format, msg...))
|
|
}
|
|
|
|
func GetLogWriter() io.Writer {
|
|
return os.Stdout
|
|
}
|
|
|
|
func CloseLogWriter() {
|
|
|
|
}
|