Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sirupsen/logrus
/ functions
Functions
506 in github.com/sirupsen/logrus
⨍
Functions
506
◇
Types & classes
58
Function
TestHookEntryIsPristine
TestHookEntryIsPristine tests that each log gets a pristine copy of Entry, and changes from modifying hooks are not persisted. Regression test for ht
hook_test.go:130
Function
TestHookFireOrder
(t *testing.T)
hook_test.go:250
Function
TestHookFires
(t *testing.T)
hook_test.go:57
Function
TestHookHandler_RecursionGuard
TestHookHandler_RecursionGuard verifies that the slog Hook and Handler can be composed without recursively forwarding a record back through Logrus log
hooks/slog/slog_test.go:215
Function
TestHookHandler_RecursionGuardPreservesContext
TestHookHandler_RecursionGuardPreservesContext verifies that adding recursion tracking does not discard context values carried by a Logrus entry.
hooks/slog/slog_test.go:271
Function
TestHookLevelMapping
(t *testing.T)
hooks/slog/slog_test.go:173
Function
TestHook_error_propagates
(t *testing.T)
hooks/slog/slog_test.go:117
Function
TestHook_source
(t *testing.T)
hooks/slog/slog_test.go:144
Function
TestInfo
(t *testing.T)
logrus_test.go:179
Function
TestInfoShouldAddSpacesBetweenTwoNonStrings
(t *testing.T)
logrus_test.go:230
Function
TestInfoShouldNotAddSpacesBetweenStringAndNonstring
(t *testing.T)
logrus_test.go:238
Function
TestInfoShouldNotAddSpacesBetweenStrings
(t *testing.T)
logrus_test.go:246
Function
TestInfolnShouldAddSpacesBetweenStringAndNonstring
(t *testing.T)
logrus_test.go:214
Function
TestInfolnShouldAddSpacesBetweenStrings
(t *testing.T)
logrus_test.go:206
Function
TestInfolnShouldAddSpacesBetweenTwoNonStrings
(t *testing.T)
logrus_test.go:222
Function
TestJSONDisableHTMLEscape
(t *testing.T)
json_formatter_test.go:429
Function
TestJSONDisableTimestamp
(t *testing.T)
json_formatter_test.go:401
Function
TestJSONEnableHTMLEscape
(t *testing.T)
json_formatter_test.go:442
Function
TestJSONEnableTimestamp
(t *testing.T)
json_formatter_test.go:416
Function
TestJSONEntryEndsWithNewline
(t *testing.T)
json_formatter_test.go:287
Function
TestJSONEntryFieldValueError
(t *testing.T)
json_formatter_test.go:210
Function
TestJSONLevelKey
(t *testing.T)
json_formatter_test.go:317
Function
TestJSONMessageKey
(t *testing.T)
json_formatter_test.go:300
Function
TestJSONTimeKey
(t *testing.T)
json_formatter_test.go:334
Function
TestLevel
TestLevel verifies the default Logrus-to-slog level mapping.
hooks/slog/level_test.go:12
Function
TestLevelJsonEncoding
(t *testing.T)
level_test.go:12
Function
TestLevelMarshalText
(t *testing.T)
level_test.go:40
Function
TestLevelString
(t *testing.T)
logrus_test.go:596
Function
TestLevelUnmarshalText
(t *testing.T)
level_test.go:27
Function
TestLocalhostAddAndPrint
(t *testing.T)
hooks/syslog/syslog_test.go:16
Function
TestLog
(t *testing.T)
logrus_test.go:197
Function
TestLogLevelEnabled
(t *testing.T)
logrus_test.go:735
Function
TestLoggerLogPanicLevelDoesNotPanic
TestLoggerLogPanicLevelDoesNotPanic verifies that generic Log methods treat PanicLevel as severity only and do not trigger panic behavior. Regression
logger_test.go:70
Function
TestLogger_LogFn
(t *testing.T)
example_function_test.go:11
Function
TestLogger_SetBufferPool
(t *testing.T)
logger_test.go:51
Function
TestLoggingRace
(t *testing.T)
logrus_test.go:618
Function
TestLoggingRaceWithHooksOnEntry
(t *testing.T)
logrus_test.go:634
Function
TestLoggingWithHooksRace
(t *testing.T)
hooks/test/test_test.go:53
Function
TestNestedLoggingReportsCorrectCaller
(t *testing.T)
logrus_test.go:421
Function
TestNewLocal
(t *testing.T)
hooks/test/test_test.go:98
Function
TestNewlineBehavior
(t *testing.T)
text_formatter_test.go:330
Function
TestPadLevelText
(t *testing.T)
text_formatter_test.go:235
Function
TestParseLevel
(t *testing.T)
logrus_test.go:527
Function
TestPrint
(t *testing.T)
logrus_test.go:170
Function
TestQuoting
(t *testing.T)
text_formatter_test.go:38
Function
TestRegister
(t *testing.T)
alt_exit_test.go:22
Function
TestReplaceHooks
(t *testing.T)
logrus_test.go:686
Function
TestReportCallerHelperDirect
TestReportCallerHelperDirect - verify reference when logging from a regular function
logrus_test.go:146
Function
TestReportCallerHelperViaPointer
TestReportCallerHelperViaPointer - verify reference when logging from a function called via pointer
logrus_test.go:158
Function
TestReportCallerOnTextFormatter
(t *testing.T)
logrus_test.go:801
Function
TestReportCallerPreservesExistingCaller
TestReportCallerPreservesExistingCaller verifies that explicitly set caller information is preserved regardless of whether automatic caller reporting
logrus_test.go:85
Function
TestReportCallerWhenConfigured
TestReportCallerWhenConfigured verifies that when ReportCaller is set, the 'func' field is added, and when it is unset it is not set or modified Verif
logrus_test.go:37
Function
TestSetReportCallerRace
(t *testing.T)
logrus_test.go:817
Function
TestSlogLevel
TestSlogLevel verifies the default slog-to-Logrus level mapping.
hooks/slog/level_test.go:70
Function
TestTextEntryFieldValueError
(t *testing.T)
text_formatter_test.go:622
Function
TestTextFormatterFieldMap
(t *testing.T)
text_formatter_test.go:353
Function
TestTextFormatterIsColored
(t *testing.T)
text_formatter_test.go:392
Function
TestTimeOverrideMultipleLogs
(t *testing.T)
logrus_test.go:364
Function
TestTimestampFormat
(t *testing.T)
text_formatter_test.go:172
Function
TestUserSuppliedFieldDoesNotOverwriteDefaults
(t *testing.T)
logrus_test.go:284
Function
TestUserSuppliedLevelFieldHasPrefix
(t *testing.T)
logrus_test.go:309
Function
TestUserSuppliedMsgFieldHasPrefix
(t *testing.T)
logrus_test.go:292
Function
TestUserSuppliedTimeFieldHasPrefix
(t *testing.T)
logrus_test.go:301
Function
TestWarn
(t *testing.T)
logrus_test.go:188
Function
TestWarningAndWarninglnFormatting
(t *testing.T)
logger_test.go:14
Function
TestWithFieldShouldNotOverrideTime
(t *testing.T)
logrus_test.go:353
Function
TestWithFieldsShouldAllowAssignments
(t *testing.T)
logrus_test.go:254
Function
TestWithTimeShouldNotOverrideFields
(t *testing.T)
logrus_test.go:342
Function
TestWithTimeShouldOverrideTime
(t *testing.T)
logrus_test.go:332
Function
TestWriterSplitNewlines
(t *testing.T)
writer_test.go:68
Function
TestWriterSplitsMax64KB
(t *testing.T)
writer_test.go:95
Function
Trace
Trace logs a message at level [TraceLevel] on the standard logger.
exported.go:84
Method
Trace
(args ...any)
logger.go:242
Method
Trace
(args ...any)
entry.go:424
Function
TraceFn
TraceFn logs a message from a func at level [TraceLevel] on the standard logger.
exported.go:130
Function
Tracef
Tracef logs a message at level [TraceLevel] on the standard logger.
exported.go:176
Method
Tracef
(format string, args ...any)
logger.go:173
Method
Tracef
(format string, args ...any)
entry.go:478
Function
Traceln
Traceln logs a message at level [TraceLevel] on the standard logger.
exported.go:222
Method
Traceln
(args ...any)
logger.go:341
Method
Traceln
(args ...any)
entry.go:532
Function
Warn
Warn logs a message at level [WarnLevel] on the standard logger.
exported.go:104
Function
WarnFn
WarnFn logs a message from a func at level [WarnLevel] on the standard logger.
exported.go:150
Function
Warnf
Warnf logs a message at level [WarnLevel] on the standard logger.
exported.go:196
Function
Warning
Warning logs a message at level [WarnLevel] on the standard logger.
exported.go:109
Method
Warning
(args ...any)
entry.go:444
Function
WarningFn
WarningFn logs a message from a func at level [WarnLevel] on the standard logger.
exported.go:155
Function
Warningf
Warningf logs a message at level [WarnLevel] on the standard logger.
exported.go:201
Method
Warningf
(format string, args ...any)
logger.go:195
Method
Warningf
(format string, args ...any)
entry.go:498
Function
Warningln
Warningln logs a message at level [WarnLevel] on the standard logger.
exported.go:247
Method
Warningln
(args ...any)
entry.go:552
Function
Warnln
Warnln logs a message at level [WarnLevel] on the standard logger.
exported.go:242
Method
WithAttrs
([]slog.Attr)
hooks/slog/slog_test.go:109
Method
WithContext
WithContext add a context to the log entry.
logger.go:147
Method
WithError
WithError adds an error as single field to the log entry. It calls [Entry.WithError] for the given error.
logger.go:140
Method
WithGroup
(string)
hooks/slog/slog_test.go:113
Function
WithTime
WithTime creates an entry from the standard logger and overrides the time used for logs generated with it.
exported.go:79
Method
WithTime
WithTime overrides the time of the log entry.
logger.go:154
Method
Writer
Writer at INFO level. See WriterLevel for details.
writer.go:11
← previous
next →
401–500 of 506, ranked by callers