Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sirupsen/logrus
/ functions
Functions
525 in github.com/sirupsen/logrus
⨍
Functions
525
◇
Types & classes
65
Function
TestHandler
(t *testing.T)
alt_exit_test.go:70
Function
TestHandler_PreservesRecordCaller
TestHandler_PreservesRecordCaller verifies that Handle preserves caller information carried by the slog record.
hooks/slog/handler_test.go:386
Function
TestHandler_PreservesRecordTime
TestHandler_PreservesRecordTime verifies that Handle preserves the timestamp carried by the slog record.
hooks/slog/handler_test.go:370
Function
TestHandler_basic
(t *testing.T)
hooks/slog/handler_test.go:20
Function
TestHandler_contextAndTime
(t *testing.T)
hooks/slog/handler_test.go:292
Function
TestHandler_customLevelMapper
(t *testing.T)
hooks/slog/handler_test.go:136
Function
TestHandler_enabledRespectsLogrusLevel
(t *testing.T)
hooks/slog/handler_test.go:154
Function
TestHandler_groupAttrs
(t *testing.T)
hooks/slog/handler_test.go:209
Function
TestHandler_levelMapping
(t *testing.T)
hooks/slog/handler_test.go:42
Function
TestHandler_nilLoggerPanics
(t *testing.T)
hooks/slog/handler_test.go:347
Function
TestHandler_outputIntegration
(t *testing.T)
hooks/slog/handler_test.go:325
Function
TestHandler_withAttrsAndGroups
(t *testing.T)
hooks/slog/handler_test.go:171
Function
TestHandler_withAttrsEmpty
(t *testing.T)
hooks/slog/handler_test.go:356
Function
TestHandler_withEmptyGroupName
(t *testing.T)
hooks/slog/handler_test.go:269
Function
TestHook
(t *testing.T)
hooks/slog/slog_test.go:22
Function
TestHookCanModifyEntry
(t *testing.T)
hook_test.go:92
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:192
Function
TestInfoShouldAddSpacesBetweenTwoNonStrings
(t *testing.T)
logrus_test.go:243
Function
TestInfoShouldNotAddSpacesBetweenStringAndNonstring
(t *testing.T)
logrus_test.go:251
Function
TestInfoShouldNotAddSpacesBetweenStrings
(t *testing.T)
logrus_test.go:259
Function
TestInfolnShouldAddSpacesBetweenStringAndNonstring
(t *testing.T)
logrus_test.go:227
Function
TestInfolnShouldAddSpacesBetweenStrings
(t *testing.T)
logrus_test.go:219
Function
TestInfolnShouldAddSpacesBetweenTwoNonStrings
(t *testing.T)
logrus_test.go:235
Function
TestJSONDisableHTMLEscape
(t *testing.T)
json_formatter_test.go:396
Function
TestJSONDisableTimestamp
(t *testing.T)
json_formatter_test.go:368
Function
TestJSONEnableHTMLEscape
(t *testing.T)
json_formatter_test.go:409
Function
TestJSONEnableTimestamp
(t *testing.T)
json_formatter_test.go:383
Function
TestJSONEntryEndsWithNewline
(t *testing.T)
json_formatter_test.go:251
Function
TestJSONEntryFieldValueError
(t *testing.T)
json_formatter_test.go:174
Function
TestJSONLevelKey
(t *testing.T)
json_formatter_test.go:283
Function
TestJSONMessageKey
(t *testing.T)
json_formatter_test.go:266
Function
TestJSONTimeKey
(t *testing.T)
json_formatter_test.go:300
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:609
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:210
Function
TestLogLevelEnabled
(t *testing.T)
logrus_test.go:748
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:631
Function
TestLoggingRaceWithHooksOnEntry
(t *testing.T)
logrus_test.go:647
Function
TestLoggingWithHooksRace
(t *testing.T)
hooks/test/test_test.go:53
Function
TestNestedLoggingReportsCorrectCaller
(t *testing.T)
logrus_test.go:434
Function
TestNewLocal
(t *testing.T)
hooks/test/test_test.go:98
Function
TestNewlineBehavior
(t *testing.T)
text_formatter_test.go:339
Function
TestPadLevelText
(t *testing.T)
text_formatter_test.go:244
Function
TestParseLevel
(t *testing.T)
logrus_test.go:540
Function
TestPrint
(t *testing.T)
logrus_test.go:183
Function
TestQuoting
(t *testing.T)
text_formatter_test.go:48
Function
TestRegister
(t *testing.T)
alt_exit_test.go:22
Function
TestReplaceHooks
(t *testing.T)
logrus_test.go:699
Function
TestReportCallerHelperDirect
TestReportCallerHelperDirect - verify reference when logging from a regular function
logrus_test.go:159
Function
TestReportCallerHelperViaPointer
TestReportCallerHelperViaPointer - verify reference when logging from a function called via pointer
logrus_test.go:171
Function
TestReportCallerOnTextFormatter
(t *testing.T)
logrus_test.go:814
Function
TestReportCallerPreservesExistingCaller
TestReportCallerPreservesExistingCaller verifies that explicitly set caller information is preserved regardless of whether automatic caller reporting
logrus_test.go:98
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:50
Function
TestSetReportCallerRace
(t *testing.T)
logrus_test.go:830
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:631
Function
TestTextFormatterFieldMap
(t *testing.T)
text_formatter_test.go:362
Function
TestTextFormatterIsColored
(t *testing.T)
text_formatter_test.go:401
Function
TestTextFormatterPanickingValue
TestTextFormatterPanickingValue verifies panicking Error and Stringer methods are recovered. regression test for https://github.com/sirupsen/logrus/i
text_formatter_test.go:723
Function
TestTimeOverrideMultipleLogs
(t *testing.T)
logrus_test.go:377
Function
TestTimestampFormat
(t *testing.T)
text_formatter_test.go:181
Function
TestUserSuppliedFieldDoesNotOverwriteDefaults
(t *testing.T)
logrus_test.go:297
Function
TestUserSuppliedLevelFieldHasPrefix
(t *testing.T)
logrus_test.go:322
Function
TestUserSuppliedMsgFieldHasPrefix
(t *testing.T)
logrus_test.go:305
Function
TestUserSuppliedTimeFieldHasPrefix
(t *testing.T)
logrus_test.go:314
Function
TestWarn
(t *testing.T)
logrus_test.go:201
Function
TestWarningAndWarninglnFormatting
(t *testing.T)
logger_test.go:14
Function
TestWithFieldShouldNotOverrideTime
(t *testing.T)
logrus_test.go:366
Function
TestWithFieldsShouldAllowAssignments
(t *testing.T)
logrus_test.go:267
Function
TestWithTimeShouldNotOverrideFields
(t *testing.T)
logrus_test.go:355
Function
TestWithTimeShouldOverrideTime
(t *testing.T)
logrus_test.go:345
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:408
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:462
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:516
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
← previous
next →
401–500 of 525, ranked by callers