Skip to content

Commit

Permalink
log: add comments about Printf/Println.
Browse files Browse the repository at this point in the history
  • Loading branch information
pritesh committed Dec 1, 2016
1 parent 42ca14e commit 41a3674
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rlog.go
Expand Up @@ -386,12 +386,16 @@ func Infof(format string, a ...interface{}) {
}

// Println prints a message if RLOG_LEVEL is set to INFO or lower.
// Println shouldn't be used except for backward compatibility
// with standard log package, directly using Info is preferred way.
func Println(a ...interface{}) {
basicLog(levelInfo, notATrace, "", "", a...)
}

// Printf prints a message if RLOG_LEVEL is set to INFO or lower, with
// formatting.
// Printf shouldn't be used except for backward compatibility
// with standard log package, directly using Infof is preferred way.
func Printf(format string, a ...interface{}) {
basicLog(levelInfo, notATrace, format, "", a...)
}
Expand Down

0 comments on commit 41a3674

Please sign in to comment.