Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sirupsen/logrus
/ WithFields
Method
WithFields
logrus.go:144–144 ·
view source on GitHub ↗
(fields Fields)
Source
from the content-addressed store, hash-verified
142
type
FieldLogger
interface
{
143
WithField(key string, value
interface
{}) *Entry
144
WithFields(fields Fields) *Entry
145
WithError(err error) *Entry
146
147
Debugf(format string, args ...
interface
{})
Callers
8
Example_hook
Function · 0.65
logSomething
Function · 0.65
TestWithFieldsShouldAllowAssignments
Function · 0.65
TestNestedLoggingReportsCorrectCaller
Function · 0.65
TestReportCallerOnTextFormatter
Function · 0.65
WithFields
Method · 0.65
Example_basic
Function · 0.65
WithFields
Function · 0.65
Implementers
2
Logger
logger.go
Entry
entry.go
Calls
no outgoing calls
Tested by
6
Example_hook
Function · 0.52
logSomething
Function · 0.52
TestWithFieldsShouldAllowAssignments
Function · 0.52
TestNestedLoggingReportsCorrectCaller
Function · 0.52
TestReportCallerOnTextFormatter
Function · 0.52
Example_basic
Function · 0.52