()
| 62 | } |
| 63 | |
| 64 | func (elog *Log) String() string { |
| 65 | b := &strings.Builder{} |
| 66 | |
| 67 | fmt.Fprintf(b, "Log size: %10v\n", len(elog.Log)) |
| 68 | fmt.Fprintf(b, "========\n") |
| 69 | |
| 70 | for _, l := range elog.Log { |
| 71 | fmt.Fprint(b, l.String()) |
| 72 | } |
| 73 | |
| 74 | return b.String() |
| 75 | } |
| 76 | |
| 77 | // AddEntry adds a LogEntry to the Log. |
| 78 | func (elog *Log) AddEntry(l *LogEntry) { |
no outgoing calls