aboutsummaryrefslogtreecommitdiffstats
path: root/logger/glog
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-01-21 20:36:33 +0800
committerFelix Lange <fjl@twurst.com>2016-01-21 20:37:38 +0800
commit0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef (patch)
tree6781c560459928105ff64b8a61b5de3bc1dac48f /logger/glog
parenta15b02320eca04325c998d69a77ebf1e53e22808 (diff)
downloadgo-tangerine-0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef.tar
go-tangerine-0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef.tar.gz
go-tangerine-0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef.tar.bz2
go-tangerine-0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef.tar.lz
go-tangerine-0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef.tar.xz
go-tangerine-0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef.tar.zst
go-tangerine-0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef.zip
logger/glog: add SetVmodule
Diffstat (limited to 'logger/glog')
-rw-r--r--logger/glog/glog.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/logger/glog/glog.go b/logger/glog/glog.go
index ef0c3068c..b8eaf9359 100644
--- a/logger/glog/glog.go
+++ b/logger/glog/glog.go
@@ -138,6 +138,11 @@ func SetV(v int) {
logging.verbosity.set(Level(v))
}
+// SetVmodule sets the global verbosity patterns.
+func SetVmodule(pat string) error {
+ return logging.vmodule.Set(pat)
+}
+
// SetToStderr sets the global output style
func SetToStderr(toStderr bool) {
logging.toStderr = toStderr