MCPcopy Create free account

hub / github.com/sirupsen/logrus / functions

Functions506 in github.com/sirupsen/logrus

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:179
FunctionTestInfoShouldAddSpacesBetweenTwoNonStrings
(t *testing.T)
logrus_test.go:230
FunctionTestInfoShouldNotAddSpacesBetweenStringAndNonstring
(t *testing.T)
logrus_test.go:238
FunctionTestInfoShouldNotAddSpacesBetweenStrings
(t *testing.T)
logrus_test.go:246
FunctionTestInfolnShouldAddSpacesBetweenStringAndNonstring
(t *testing.T)
logrus_test.go:214
FunctionTestInfolnShouldAddSpacesBetweenStrings
(t *testing.T)
logrus_test.go:206
FunctionTestInfolnShouldAddSpacesBetweenTwoNonStrings
(t *testing.T)
logrus_test.go:222
FunctionTestJSONDisableHTMLEscape
(t *testing.T)
json_formatter_test.go:429
FunctionTestJSONDisableTimestamp
(t *testing.T)
json_formatter_test.go:401
FunctionTestJSONEnableHTMLEscape
(t *testing.T)
json_formatter_test.go:442
FunctionTestJSONEnableTimestamp
(t *testing.T)
json_formatter_test.go:416
FunctionTestJSONEntryEndsWithNewline
(t *testing.T)
json_formatter_test.go:287
FunctionTestJSONEntryFieldValueError
(t *testing.T)
json_formatter_test.go:210
FunctionTestJSONLevelKey
(t *testing.T)
json_formatter_test.go:317
FunctionTestJSONMessageKey
(t *testing.T)
json_formatter_test.go:300
FunctionTestJSONTimeKey
(t *testing.T)
json_formatter_test.go:334
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:596
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:197
FunctionTestLogLevelEnabled
(t *testing.T)
logrus_test.go:735
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:618
FunctionTestLoggingRaceWithHooksOnEntry
(t *testing.T)
logrus_test.go:634
FunctionTestLoggingWithHooksRace
(t *testing.T)
hooks/test/test_test.go:53
FunctionTestNestedLoggingReportsCorrectCaller
(t *testing.T)
logrus_test.go:421
FunctionTestNewLocal
(t *testing.T)
hooks/test/test_test.go:98
FunctionTestNewlineBehavior
(t *testing.T)
text_formatter_test.go:330
FunctionTestPadLevelText
(t *testing.T)
text_formatter_test.go:235
FunctionTestParseLevel
(t *testing.T)
logrus_test.go:527
FunctionTestPrint
(t *testing.T)
logrus_test.go:170
FunctionTestQuoting
(t *testing.T)
text_formatter_test.go:38
FunctionTestRegister
(t *testing.T)
alt_exit_test.go:22
FunctionTestReplaceHooks
(t *testing.T)
logrus_test.go:686
FunctionTestReportCallerHelperDirect
TestReportCallerHelperDirect - verify reference when logging from a regular function
logrus_test.go:146
FunctionTestReportCallerHelperViaPointer
TestReportCallerHelperViaPointer - verify reference when logging from a function called via pointer
logrus_test.go:158
FunctionTestReportCallerOnTextFormatter
(t *testing.T)
logrus_test.go:801
FunctionTestReportCallerPreservesExistingCaller
TestReportCallerPreservesExistingCaller verifies that explicitly set caller information is preserved regardless of whether automatic caller reporting
logrus_test.go:85
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:37
FunctionTestSetReportCallerRace
(t *testing.T)
logrus_test.go:817
FunctionTestSlogLevel
TestSlogLevel verifies the default slog-to-Logrus level mapping.
hooks/slog/level_test.go:70
FunctionTestTextEntryFieldValueError
(t *testing.T)
text_formatter_test.go:622
FunctionTestTextFormatterFieldMap
(t *testing.T)
text_formatter_test.go:353
FunctionTestTextFormatterIsColored
(t *testing.T)
text_formatter_test.go:392
FunctionTestTimeOverrideMultipleLogs
(t *testing.T)
logrus_test.go:364
FunctionTestTimestampFormat
(t *testing.T)
text_formatter_test.go:172
FunctionTestUserSuppliedFieldDoesNotOverwriteDefaults
(t *testing.T)
logrus_test.go:284
FunctionTestUserSuppliedLevelFieldHasPrefix
(t *testing.T)
logrus_test.go:309
FunctionTestUserSuppliedMsgFieldHasPrefix
(t *testing.T)
logrus_test.go:292
FunctionTestUserSuppliedTimeFieldHasPrefix
(t *testing.T)
logrus_test.go:301
FunctionTestWarn
(t *testing.T)
logrus_test.go:188
FunctionTestWarningAndWarninglnFormatting
(t *testing.T)
logger_test.go:14
FunctionTestWithFieldShouldNotOverrideTime
(t *testing.T)
logrus_test.go:353
FunctionTestWithFieldsShouldAllowAssignments
(t *testing.T)
logrus_test.go:254
FunctionTestWithTimeShouldNotOverrideFields
(t *testing.T)
logrus_test.go:342
FunctionTestWithTimeShouldOverrideTime
(t *testing.T)
logrus_test.go:332
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:424
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:478
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:532
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
FunctionWarnf
Warnf logs a message at level [WarnLevel] on the standard logger.
exported.go:196
FunctionWarning
Warning logs a message at level [WarnLevel] on the standard logger.
exported.go:109
MethodWarning
(args ...any)
entry.go:444
FunctionWarningFn
WarningFn logs a message from a func at level [WarnLevel] on the standard logger.
exported.go:155
FunctionWarningf
Warningf logs a message at level [WarnLevel] on the standard logger.
exported.go:201
MethodWarningf
(format string, args ...any)
logger.go:195
MethodWarningf
(format string, args ...any)
entry.go:498
FunctionWarningln
Warningln logs a message at level [WarnLevel] on the standard logger.
exported.go:247
MethodWarningln
(args ...any)
entry.go:552
FunctionWarnln
Warnln logs a message at level [WarnLevel] on the standard logger.
exported.go:242
MethodWithAttrs
([]slog.Attr)
hooks/slog/slog_test.go:109
MethodWithContext
WithContext add a context to the log entry.
logger.go:147
MethodWithError
WithError adds an error as single field to the log entry. It calls [Entry.WithError] for the given error.
logger.go:140
MethodWithGroup
(string)
hooks/slog/slog_test.go:113
FunctionWithTime
WithTime creates an entry from the standard logger and overrides the time used for logs generated with it.
exported.go:79
MethodWithTime
WithTime overrides the time of the log entry.
logger.go:154
MethodWriter
Writer at INFO level. See WriterLevel for details.
writer.go:11
← previousnext →401–500 of 506, ranked by callers