MCPcopy
hub / github.com/op/go-logging / Formatted

Method Formatted

logger.go:59–66  ·  view source on GitHub ↗

Formatted returns the formatted log record string.

(calldepth int)

Source from the content-addressed store, hash-verified

57
58// Formatted returns the formatted log record string.
59func (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.
69func (r *Record) Message() string {

Callers 13

TestFormatFunction · 0.80
logAndGetLineFunction · 0.80
getLastLineFunction · 0.80
TestMultiLoggerFunction · 0.80
TestMultiLoggerLevelFunction · 0.80
LogMethod · 0.80
LogMethod · 0.80
TestMemoryBackendFunction · 0.80
TestChannelMemoryBackendFunction · 0.80
TestRedactFunction · 0.80
TestRedactfFunction · 0.80
TestPrivateBackendFunction · 0.80

Calls 2

StringMethod · 0.80
FormatMethod · 0.65

Tested by 10

TestFormatFunction · 0.64
logAndGetLineFunction · 0.64
getLastLineFunction · 0.64
TestMultiLoggerFunction · 0.64
TestMultiLoggerLevelFunction · 0.64
TestMemoryBackendFunction · 0.64
TestChannelMemoryBackendFunction · 0.64
TestRedactFunction · 0.64
TestRedactfFunction · 0.64
TestPrivateBackendFunction · 0.64