From b917bdd3ba255cd71ec0aa837215fa296b89eb77 Mon Sep 17 00:00:00 2001
From: Genevieve Luyt
-The Embedding
}
Job
type now has the Log
, Logf
+The Job
type now has the Print
, Printf
, Println
and other
methods of *log.Logger
. We could have given the Logger
a field name, of course, but it's not necessary to do so. And now, once
@@ -2770,7 +2770,7 @@ Embedding
log to the Job
:
-job.Log("starting now...") +job.Println("starting now...")
The Logger
is a regular field of the Job
struct,
@@ -2797,8 +2797,8 @@
Logger
.
-func (job *Job) Logf(format string, args ...interface{}) { - job.Logger.Logf("%q: %s", job.Command, fmt.Sprintf(format, args...)) +func (job *Job) Printf(format string, args ...interface{}) { + job.Logger.Printf("%q: %s", job.Command, fmt.Sprintf(format, args...)) }