Formatted returns the formatted log record string.
(calldepth int)
| 57 | |
| 58 | // Formatted returns the formatted log record string. |
| 59 | func (r *Record) Formatted(calldepth int) string { |
| 60 | if r.formatted == "" { |
| 61 | var buf bytes.Buffer |
| 62 | r.formatter.Format(calldepth+1, r, &buf) |
| 63 | r.formatted = buf.String() |
| 64 | } |
| 65 | return r.formatted |
| 66 | } |
| 67 | |
| 68 | // Message returns the log record message. |
| 69 | func (r *Record) Message() string { |