Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sirupsen/logrus
/ WithField
Method
WithField
logrus.go:143–143 ·
view source on GitHub ↗
(key string, value interface{})
Source
from the content-addressed store, hash-verified
141
// the [Entry] and [Logger] types.
142
type
FieldLogger
interface
{
143
WithField(key string, value
interface
{}) *Entry
144
WithFields(fields Fields) *Entry
145
WithError(err error) *Entry
146
Callers
15
TestLogrusInterfaces
Function · 0.95
TestEntryWithContextCopiesData
Function · 0.65
TestEntryWithTimeCopiesData
Function · 0.65
TestEntryWithIncorrectField
Function · 0.65
doLoggerBenchmarkWithFormatter
Function · 0.65
TestHookCanModifyEntry
Function · 0.65
TestCanFireMultipleHooks
Function · 0.65
TestWithFieldsShouldAllowAssignments
Function · 0.65
TestUserSuppliedFieldDoesNotOverwriteDefaults
Function · 0.65
TestUserSuppliedMsgFieldHasPrefix
Function · 0.65
TestUserSuppliedTimeFieldHasPrefix
Function · 0.65
TestUserSuppliedLevelFieldHasPrefix
Function · 0.65
Implementers
2
Logger
logger.go
Entry
entry.go
Calls
no outgoing calls
Tested by
15
TestLogrusInterfaces
Function · 0.76
TestEntryWithContextCopiesData
Function · 0.52
TestEntryWithTimeCopiesData
Function · 0.52
TestEntryWithIncorrectField
Function · 0.52
doLoggerBenchmarkWithFormatter
Function · 0.52
TestHookCanModifyEntry
Function · 0.52
TestCanFireMultipleHooks
Function · 0.52
TestWithFieldsShouldAllowAssignments
Function · 0.52
TestUserSuppliedFieldDoesNotOverwriteDefaults
Function · 0.52
TestUserSuppliedMsgFieldHasPrefix
Function · 0.52
TestUserSuppliedTimeFieldHasPrefix
Function · 0.52
TestUserSuppliedLevelFieldHasPrefix
Function · 0.52