mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-24 18:59:34 +08:00
18 lines
321 B
Go
18 lines
321 B
Go
![]() |
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
|
||
|
}
|