seaweedfs/go/glog/convenient_api.go

17 lines
281 B
Go
Raw Normal View History

package glog
import ()
/*
Copying the original glog because it is missing several convenient methods.
2013-08-09 07:17:07 +00:00
1. use ToStderrAndLog() in the weed.go
2. remove nano time in log format
*/
func ToStderr() {
logging.toStderr = true
}
func ToStderrAndLog() {
logging.alsoToStderr = true
}