diff options
author | Felix Lange <fjl@twurst.com> | 2016-01-21 20:36:33 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-01-21 20:37:38 +0800 |
commit | 0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef (patch) | |
tree | 6781c560459928105ff64b8a61b5de3bc1dac48f /logger | |
parent | a15b02320eca04325c998d69a77ebf1e53e22808 (diff) | |
download | go-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')
-rw-r--r-- | logger/glog/glog.go | 5 |
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 |