aboutsummaryrefslogtreecommitdiff
path: root/go/glog/convenient_api.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/glog/convenient_api.go')
-rw-r--r--go/glog/convenient_api.go17
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
+}