diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-08-08 23:57:22 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-08-08 23:57:22 -0700 |
| commit | ed154053c833f9bcce9094e535e2adc0a0397e46 (patch) | |
| tree | 40dc16b76a12929bc8ac7af0549ccf65316e9011 /go/glog/convenient_api.go | |
| parent | b27947b3550dfdf091010bd2607b8c36a5dca049 (diff) | |
| download | seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip | |
switching to temporarily use glog library
Diffstat (limited to 'go/glog/convenient_api.go')
| -rw-r--r-- | go/glog/convenient_api.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/go/glog/convenient_api.go b/go/glog/convenient_api.go new file mode 100644 index 000000000..b209c0b5c --- /dev/null +++ b/go/glog/convenient_api.go @@ -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 +} |
