Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sirupsen/logrus
/ Format
Method
Format
formatter.go:27–27 ·
view source on GitHub ↗
(*Entry)
Source
from the content-addressed store, hash-verified
25
// logged to `logger.Out`.
26
type
Formatter
interface
{
27
Format(*Entry) ([]byte, error)
28
}
29
30
// This is to not silently overwrite `time`, `msg`, `func` and `level` fields when
Callers
9
TestWithTimeShouldOverrideTime
Function · 0.65
TestWithTimeShouldNotOverrideFields
Function · 0.65
TestWithFieldShouldNotOverrideTime
Function · 0.65
Bytes
Method · 0.65
write
Method · 0.65
doBenchmark
Function · 0.65
Format
Method · 0.65
Format
Method · 0.65
printColored
Method · 0.65
Implementers
2
JSONFormatter
json_formatter.go
TextFormatter
text_formatter.go
Calls
no outgoing calls
Tested by
4
TestWithTimeShouldOverrideTime
Function · 0.52
TestWithTimeShouldNotOverrideFields
Function · 0.52
TestWithFieldShouldNotOverrideTime
Function · 0.52
doBenchmark
Function · 0.52