switching to temporarily use glog library
This commit is contained in:
17
go/glog/convenient_api.go
Normal file
17
go/glog/convenient_api.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package glog
|
||||
|
||||
import ()
|
||||
|
||||
/*
|
||||
Copying the original glog because it is missing several convenient methods.
|
||||
1. change log file size limit to 180MB
|
||||
2. use ToStderrAndLog() in the weed.go
|
||||
3. remove nano time in log format
|
||||
*/
|
||||
|
||||
func ToStderr() {
|
||||
logging.toStderr = true
|
||||
}
|
||||
func ToStderrAndLog() {
|
||||
logging.alsoToStderr = true
|
||||
}
|
||||
Reference in New Issue
Block a user