summaryrefslogtreecommitdiff
path: root/src/pkg/log
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-24 11:55:48 -0400
committerRuss Cox <rsc@golang.org>2010-09-24 11:55:48 -0400
commitd5165e014a48caf4e70ee689a9aa91f518c6b0e6 (patch)
tree891771a88ca051db8f5401574bb5d2f70ef8a4ff /src/pkg/log
parentae57636feb9528a094e23a8b4bde17b418a94b00 (diff)
downloadgo-d5165e014a48caf4e70ee689a9aa91f518c6b0e6.tar.gz
... changes
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/2273042
Diffstat (limited to 'src/pkg/log')
-rw-r--r--src/pkg/log/log.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/pkg/log/log.go b/src/pkg/log/log.go
index 28d6204eb..f6612205f 100644
--- a/src/pkg/log/log.go
+++ b/src/pkg/log/log.go
@@ -150,32 +150,32 @@ func (l *Logger) Output(calldepth int, s string) os.Error {
// Logf is analogous to Printf() for a Logger.
func (l *Logger) Logf(format string, v ...interface{}) {
- l.Output(2, fmt.Sprintf(format, v))
+ l.Output(2, fmt.Sprintf(format, v...))
}
// Log is analogous to Print() for a Logger.
-func (l *Logger) Log(v ...interface{}) { l.Output(2, fmt.Sprintln(v)) }
+func (l *Logger) Log(v ...interface{}) { l.Output(2, fmt.Sprintln(v...)) }
// Stdout is a helper function for easy logging to stdout. It is analogous to Print().
-func Stdout(v ...interface{}) { stdout.Output(2, fmt.Sprint(v)) }
+func Stdout(v ...interface{}) { stdout.Output(2, fmt.Sprint(v...)) }
// Stderr is a helper function for easy logging to stderr. It is analogous to Fprint(os.Stderr).
-func Stderr(v ...interface{}) { stderr.Output(2, fmt.Sprintln(v)) }
+func Stderr(v ...interface{}) { stderr.Output(2, fmt.Sprintln(v...)) }
// Stdoutf is a helper functions for easy formatted logging to stdout. It is analogous to Printf().
-func Stdoutf(format string, v ...interface{}) { stdout.Output(2, fmt.Sprintf(format, v)) }
+func Stdoutf(format string, v ...interface{}) { stdout.Output(2, fmt.Sprintf(format, v...)) }
// Stderrf is a helper function for easy formatted logging to stderr. It is analogous to Fprintf(os.Stderr).
-func Stderrf(format string, v ...interface{}) { stderr.Output(2, fmt.Sprintf(format, v)) }
+func Stderrf(format string, v ...interface{}) { stderr.Output(2, fmt.Sprintf(format, v...)) }
// Exit is equivalent to Stderr() followed by a call to os.Exit(1).
-func Exit(v ...interface{}) { exit.Output(2, fmt.Sprintln(v)) }
+func Exit(v ...interface{}) { exit.Output(2, fmt.Sprintln(v...)) }
// Exitf is equivalent to Stderrf() followed by a call to os.Exit(1).
-func Exitf(format string, v ...interface{}) { exit.Output(2, fmt.Sprintf(format, v)) }
+func Exitf(format string, v ...interface{}) { exit.Output(2, fmt.Sprintf(format, v...)) }
// Crash is equivalent to Stderr() followed by a call to panic().
-func Crash(v ...interface{}) { crash.Output(2, fmt.Sprintln(v)) }
+func Crash(v ...interface{}) { crash.Output(2, fmt.Sprintln(v...)) }
// Crashf is equivalent to Stderrf() followed by a call to panic().
-func Crashf(format string, v ...interface{}) { crash.Output(2, fmt.Sprintf(format, v)) }
+func Crashf(format string, v ...interface{}) { crash.Output(2, fmt.Sprintf(format, v...)) }