Logf logs some formatted string, which is interpreted according to the rules defined in package "fmt".
(str string, vals ...interface{})
| 34 | // Logf logs some formatted string, which is interpreted according to the rules |
| 35 | // defined in package "fmt". |
| 36 | func (s *SimpleTask) Logf(str string, vals ...interface{}) { |
| 37 | s.ch <- &Update{ |
| 38 | S: fmt.Sprintf(str, vals...), |
| 39 | At: time.Now(), |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // Complete notes that the task is completed by closing the Updates channel and |
| 44 | // yields the logger to the next Task. Complete blocks until the *tasklog.Logger |
no outgoing calls