MCPcopy Create free account

hub / github.com/sirupsen/logrus / functions

Functions525 in github.com/sirupsen/logrus

FunctionTestHandler
(t *testing.T)
alt_exit_test.go:70
FunctionTestHandler_PreservesRecordCaller
TestHandler_PreservesRecordCaller verifies that Handle preserves caller information carried by the slog record.
hooks/slog/handler_test.go:386
FunctionTestHandler_PreservesRecordTime
TestHandler_PreservesRecordTime verifies that Handle preserves the timestamp carried by the slog record.
hooks/slog/handler_test.go:370
FunctionTestHandler_basic
(t *testing.T)
hooks/slog/handler_test.go:20
FunctionTestHandler_contextAndTime
(t *testing.T)
hooks/slog/handler_test.go:292
FunctionTestHandler_customLevelMapper
(t *testing.T)
hooks/slog/handler_test.go:136
FunctionTestHandler_enabledRespectsLogrusLevel
(t *testing.T)
hooks/slog/handler_test.go:154
FunctionTestHandler_groupAttrs
(t *testing.T)
hooks/slog/handler_test.go:209
FunctionTestHandler_levelMapping
(t *testing.T)
hooks/slog/handler_test.go:42
FunctionTestHandler_nilLoggerPanics
(t *testing.T)
hooks/slog/handler_test.go:347
FunctionTestHandler_outputIntegration
(t *testing.T)
hooks/slog/handler_test.go:325
FunctionTestHandler_withAttrsAndGroups
(t *testing.T)
hooks/slog/handler_test.go:171
FunctionTestHandler_withAttrsEmpty
(t *testing.T)
hooks/slog/handler_test.go:356
FunctionTestHandler_withEmptyGroupName
(t *testing.T)
hooks/slog/handler_test.go:269
FunctionTestHook
(t *testing.T)
hooks/slog/slog_test.go:22
FunctionTestHookCanModifyEntry
(t *testing.T)
hook_test.go:92
FunctionTestHookEntryIsPristine
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
FunctionTestHookFireOrder
(t *testing.T)
hook_test.go:250
FunctionTestHookFires
(t *testing.T)
hook_test.go:57
FunctionTestHookHandler_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
FunctionTestHookHandler_RecursionGuardPreservesContext
TestHookHandler_RecursionGuardPreservesContext verifies that adding recursion tracking does not discard context values carried by a Logrus entry.
hooks/slog/slog_test.go:271
FunctionTestHookLevelMapping
(t *testing.T)
hooks/slog/slog_test.go:173
FunctionTestHook_error_propagates
(t *testing.T)
hooks/slog/slog_test.go:117
FunctionTestHook_source
(t *testing.T)
hooks/slog/slog_test.go:144
FunctionTestInfo
(t *testing.T)
logrus_test.go:192
FunctionTestInfoShouldAddSpacesBetweenTwoNonStrings
(t *testing.T)
logrus_test.go:243
FunctionTestInfoShouldNotAddSpacesBetweenStringAndNonstring
(t *testing.T)
logrus_test.go:251
FunctionTestInfoShouldNotAddSpacesBetweenStrings
(t *testing.T)
logrus_test.go:259
FunctionTestInfolnShouldAddSpacesBetweenStringAndNonstring
(t *testing.T)
logrus_test.go:227
FunctionTestInfolnShouldAddSpacesBetweenStrings
(t *testing.T)
logrus_test.go:219
FunctionTestInfolnShouldAddSpacesBetweenTwoNonStrings
(t *testing.T)
logrus_test.go:235
FunctionTestJSONDisableHTMLEscape
(t *testing.T)
json_formatter_test.go:396
FunctionTestJSONDisableTimestamp
(t *testing.T)
json_formatter_test.go:368
FunctionTestJSONEnableHTMLEscape
(t *testing.T)
json_formatter_test.go:409
FunctionTestJSONEnableTimestamp
(t *testing.T)
json_formatter_test.go:383
FunctionTestJSONEntryEndsWithNewline
(t *testing.T)
json_formatter_test.go:251
FunctionTestJSONEntryFieldValueError
(t *testing.T)
json_formatter_test.go:174
FunctionTestJSONLevelKey
(t *testing.T)
json_formatter_test.go:283
FunctionTestJSONMessageKey
(t *testing.T)
json_formatter_test.go:266
FunctionTestJSONTimeKey
(t *testing.T)
json_formatter_test.go:300
FunctionTestLevel
TestLevel verifies the default Logrus-to-slog level mapping.
hooks/slog/level_test.go:12
FunctionTestLevelJsonEncoding
(t *testing.T)
level_test.go:12
FunctionTestLevelMarshalText
(t *testing.T)
level_test.go:40
FunctionTestLevelString
(t *testing.T)
logrus_test.go:609
FunctionTestLevelUnmarshalText
(t *testing.T)
level_test.go:27
FunctionTestLocalhostAddAndPrint
(t *testing.T)
hooks/syslog/syslog_test.go:16
FunctionTestLog
(t *testing.T)
logrus_test.go:210
FunctionTestLogLevelEnabled
(t *testing.T)
logrus_test.go:748
FunctionTestLoggerLogPanicLevelDoesNotPanic
TestLoggerLogPanicLevelDoesNotPanic verifies that generic Log methods treat PanicLevel as severity only and do not trigger panic behavior. Regression
logger_test.go:70
FunctionTestLogger_LogFn
(t *testing.T)
example_function_test.go:11
FunctionTestLogger_SetBufferPool
(t *testing.T)
logger_test.go:51
FunctionTestLoggingRace
(t *testing.T)
logrus_test.go:631
FunctionTestLoggingRaceWithHooksOnEntry
(t *testing.T)
logrus_test.go:647
FunctionTestLoggingWithHooksRace
(t *testing.T)
hooks/test/test_test.go:53
FunctionTestNestedLoggingReportsCorrectCaller
(t *testing.T)
logrus_test.go:434
FunctionTestNewLocal
(t *testing.T)
hooks/test/test_test.go:98
FunctionTestNewlineBehavior
(t *testing.T)
text_formatter_test.go:339
FunctionTestPadLevelText
(t *testing.T)
text_formatter_test.go:244
FunctionTestParseLevel
(t *testing.T)
logrus_test.go:540
FunctionTestPrint
(t *testing.T)
logrus_test.go:183
FunctionTestQuoting
(t *testing.T)
text_formatter_test.go:48
FunctionTestRegister
(t *testing.T)
alt_exit_test.go:22
FunctionTestReplaceHooks
(t *testing.T)
logrus_test.go:699
FunctionTestReportCallerHelperDirect
TestReportCallerHelperDirect - verify reference when logging from a regular function
logrus_test.go:159
FunctionTestReportCallerHelperViaPointer
TestReportCallerHelperViaPointer - verify reference when logging from a function called via pointer
logrus_test.go:171
FunctionTestReportCallerOnTextFormatter
(t *testing.T)
logrus_test.go:814
FunctionTestReportCallerPreservesExistingCaller
TestReportCallerPreservesExistingCaller verifies that explicitly set caller information is preserved regardless of whether automatic caller reporting
logrus_test.go:98
FunctionTestReportCallerWhenConfigured
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
FunctionTestSetReportCallerRace
(t *testing.T)
logrus_test.go:830
FunctionTestSlogLevel
TestSlogLevel verifies the default slog-to-Logrus level mapping.
hooks/slog/level_test.go:70
FunctionTestTextEntryFieldValueError
(t *testing.T)
text_formatter_test.go:631
FunctionTestTextFormatterFieldMap
(t *testing.T)
text_formatter_test.go:362
FunctionTestTextFormatterIsColored
(t *testing.T)
text_formatter_test.go:401
FunctionTestTextFormatterPanickingValue
TestTextFormatterPanickingValue verifies panicking Error and Stringer methods are recovered. regression test for https://github.com/sirupsen/logrus/i
text_formatter_test.go:723
FunctionTestTimeOverrideMultipleLogs
(t *testing.T)
logrus_test.go:377
FunctionTestTimestampFormat
(t *testing.T)
text_formatter_test.go:181
FunctionTestUserSuppliedFieldDoesNotOverwriteDefaults
(t *testing.T)
logrus_test.go:297
FunctionTestUserSuppliedLevelFieldHasPrefix
(t *testing.T)
logrus_test.go:322
FunctionTestUserSuppliedMsgFieldHasPrefix
(t *testing.T)
logrus_test.go:305
FunctionTestUserSuppliedTimeFieldHasPrefix
(t *testing.T)
logrus_test.go:314
FunctionTestWarn
(t *testing.T)
logrus_test.go:201
FunctionTestWarningAndWarninglnFormatting
(t *testing.T)
logger_test.go:14
FunctionTestWithFieldShouldNotOverrideTime
(t *testing.T)
logrus_test.go:366
FunctionTestWithFieldsShouldAllowAssignments
(t *testing.T)
logrus_test.go:267
FunctionTestWithTimeShouldNotOverrideFields
(t *testing.T)
logrus_test.go:355
FunctionTestWithTimeShouldOverrideTime
(t *testing.T)
logrus_test.go:345
FunctionTestWriterSplitNewlines
(t *testing.T)
writer_test.go:68
FunctionTestWriterSplitsMax64KB
(t *testing.T)
writer_test.go:95
FunctionTrace
Trace logs a message at level [TraceLevel] on the standard logger.
exported.go:84
MethodTrace
(args ...any)
logger.go:242
MethodTrace
(args ...any)
entry.go:408
FunctionTraceFn
TraceFn logs a message from a func at level [TraceLevel] on the standard logger.
exported.go:130
FunctionTracef
Tracef logs a message at level [TraceLevel] on the standard logger.
exported.go:176
MethodTracef
(format string, args ...any)
logger.go:173
MethodTracef
(format string, args ...any)
entry.go:462
FunctionTraceln
Traceln logs a message at level [TraceLevel] on the standard logger.
exported.go:222
MethodTraceln
(args ...any)
logger.go:341
MethodTraceln
(args ...any)
entry.go:516
FunctionWarn
Warn logs a message at level [WarnLevel] on the standard logger.
exported.go:104
FunctionWarnFn
WarnFn logs a message from a func at level [WarnLevel] on the standard logger.
exported.go:150
← previousnext →401–500 of 525, ranked by callers