Browse Source

logger/glog: add SetVmodule

Felix Lange 9 years ago
parent
commit
0edcbc797f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      logger/glog/glog.go

+ 5 - 0
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