(msg string, err error)
| 226 | } |
| 227 | |
| 228 | func (t *Task) LogWithStatus(msg string, err error) { |
| 229 | if err != nil { |
| 230 | t.Logger.Print(i18n.GetWithNameAndErr("FailedStatus", msg, err)) |
| 231 | } else { |
| 232 | t.Logger.Print(i18n.GetWithName("SuccessStatus", msg)) |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | func (t *Task) Log(msg string) { |
| 237 | t.Logger.Print(msg) |