basic glog

This commit is contained in:
obscuren
2015-04-04 12:40:11 +02:00
parent 60e097a5f4
commit a0e44e3281
10 changed files with 47 additions and 49 deletions

View File

@ -1055,6 +1055,7 @@ func (v Verbose) Infoln(args ...interface{}) {
// Infof is equivalent to the global Infof function, guarded by the value of v.
// See the documentation of V for usage.
func (v Verbose) Infof(format string, args ...interface{}) {
fmt.Println(v)
if v {
logging.printf(infoLog, format, args...)
}