MCPcopy Create free account

hub / github.com/sirupsen/logrus / functions

Functions506 in github.com/sirupsen/logrus

MethodLevels
()
hook_test.go:80
MethodLevels
()
hook_test.go:122
MethodLevels
()
hook_test.go:166
MethodLevels
()
hook_test.go:241
MethodLevels
()
example_global_hook_test.go:13
MethodLevels
Levels define on which log levels this hook would trigger
hooks/writer/writer.go:29
MethodLevels
()
hooks/test/test.go:54
MethodLevels
Levels always returns all levels, since slog allows controlling level enabling based on context.
hooks/slog/slog.go:94
MethodMarshalJSON
()
entry_test.go:475
FunctionNewHandler
NewHandler creates a [slog.Handler] that writes to the provided [logrus.Logger]. The provided logger must not be nil. NewHandler panics if logger is
hooks/slog/handler.go:56
FunctionNewHook
NewHook creates a [logrus.Hook] that sends logs to the provided [slog.Logger]. This hook is intended to be used during transition from Logrus to slog
hooks/slog/slog.go:71
FunctionNewSyslogHook
NewSyslogHook creates a hook to be added to an instance of logger. This is called with: hook, err := NewSyslogHook("udp", "localhost:514", syslog.L
hooks/syslog/syslog.go:30
FunctionPanic
Panic logs a message at level [PanicLevel] on the standard logger.
exported.go:119
MethodPanic
(args ...any)
logger.go:277
MethodPanic
(args ...any)
entry.go:457
FunctionPanicFn
PanicFn logs a message from a func at level [PanicLevel] on the standard logger.
exported.go:165
FunctionPanicf
Panicf logs a message at level [PanicLevel] on the standard logger.
exported.go:211
MethodPanicf
(format string, args ...any)
logger.go:208
MethodPanicf
(format string, args ...any)
entry.go:511
FunctionPanicln
Panicln logs a message at level [PanicLevel] on the standard logger.
exported.go:257
MethodPanicln
(args ...any)
logger.go:376
MethodPanicln
(args ...any)
entry.go:565
FunctionPrint
Print logs a message at level [InfoLevel] on the standard logger.
exported.go:94
MethodPrint
(args ...any)
logger.go:254
MethodPrint
(args ...any)
entry.go:432
FunctionPrintFn
PrintFn logs a message from a func at level [InfoLevel] on the standard logger.
exported.go:140
FunctionPrintf
Printf logs a message at level [InfoLevel] on the standard logger.
exported.go:186
MethodPrintf
(format string, args ...any)
logger.go:185
MethodPrintf
(format string, args ...any)
entry.go:490
FunctionPrintln
Println logs a message at level [InfoLevel] on the standard logger.
exported.go:232
MethodPrintln
(args ...any)
logger.go:353
MethodPrintln
(args ...any)
entry.go:544
MethodPut
(*bytes.Buffer)
entry_test.go:424
MethodPut
(buf *bytes.Buffer)
buffer_pool.go:25
MethodPut
(buf *bytes.Buffer)
logger_test.go:47
MethodRead
(p []byte)
writer_test.go:56
FunctionSetBufferPool
SetBufferPool allows to replace the default logrus buffer pool to better meet the specific needs of an application.
buffer_pool.go:35
FunctionSetFormatter
SetFormatter sets the standard logger formatter.
exported.go:25
MethodString
()
formatter_bench_test.go:14
FunctionTestAddHookRace
(t *testing.T)
hook_test.go:194
FunctionTestAddHookRace2
(t *testing.T)
hook_test.go:215
FunctionTestAllHooks
(t *testing.T)
hooks/test/test_test.go:15
FunctionTestCallerReportingOverhead
Assertions for upper bounds to reporting overhead
logrus_test.go:497
FunctionTestCanFireMultipleHooks
(t *testing.T)
hook_test.go:103
FunctionTestConvertLevelToString
(t *testing.T)
logrus_test.go:517
FunctionTestCustomSorting
(t *testing.T)
text_formatter_test.go:533
FunctionTestCustomSorting_FirstFormat
TestCustomSorting_FirstFormat tests that color and terminal settings are performed on the first message, and the message is properly formatted with de
text_formatter_test.go:569
FunctionTestDefaultFieldsAreNotPrefixed
(t *testing.T)
logrus_test.go:318
FunctionTestDefer
(t *testing.T)
alt_exit_test.go:46
FunctionTestDifferentLevelsGoToDifferentWriters
(t *testing.T)
hooks/writer/writer_test.go:13
FunctionTestDisableLevelTruncation
(t *testing.T)
text_formatter_test.go:193
FunctionTestDisableTimestampWithColoredOutput
(t *testing.T)
text_formatter_test.go:321
FunctionTestDoubleLoggingDoesntPrefixPreviousFields
(t *testing.T)
logrus_test.go:391
FunctionTestEntryDerivationPreservesCaller
TestEntryDerivationPreservesCaller verifies that derived entries retain explicitly set caller information.
entry_test.go:285
FunctionTestEntryHooksPanic
(t *testing.T)
entry_test.go:264
FunctionTestEntryLogPanicLevelDoesNotPanic
TestEntryLogPanicLevelDoesNotPanic verifies that generic Log methods treat PanicLevel as severity only and do not trigger panic behavior. Regression
entry_test.go:140
FunctionTestEntryLogfLevel
(t *testing.T)
entry_test.go:374
FunctionTestEntryLoggerMutationRace
(t *testing.T)
entry_test.go:388
FunctionTestEntryPanic
(t *testing.T)
entry_test.go:223
FunctionTestEntryPanicf
(t *testing.T)
entry_test.go:201
FunctionTestEntryPanicln
(t *testing.T)
entry_test.go:179
FunctionTestEntryReentrantLoggingDeadlock
TestEntryReentrantLoggingDeadlock verifies that logging from within a field's MarshalJSON (or similar serialization callback) does not deadlock. This
entry_test.go:483
FunctionTestEntryWithContext
(t *testing.T)
entry_test.go:42
FunctionTestEntryWithContextCopiesData
(t *testing.T)
entry_test.go:56
FunctionTestEntryWithError
(t *testing.T)
entry_test.go:23
FunctionTestEntryWithIncorrectField
(t *testing.T)
entry_test.go:335
FunctionTestEntryWithTimeCopiesData
(t *testing.T)
entry_test.go:99
FunctionTestEntryWriter
(t *testing.T)
logrus_test.go:717
FunctionTestErrorHookShouldFireOnError
(t *testing.T)
hook_test.go:183
FunctionTestErrorHookShouldntFireOnInfo
(t *testing.T)
hook_test.go:172
FunctionTestErrorNotLost
(t *testing.T)
json_formatter_test.go:15
FunctionTestErrorNotLostOnFieldNotNamedError
(t *testing.T)
json_formatter_test.go:34
FunctionTestEscaping
(t *testing.T)
text_formatter_test.go:132
FunctionTestEscaping_Interface
(t *testing.T)
text_formatter_test.go:151
FunctionTestFatalWithAlternateExit
nolint:staticcheck // linter assumes logger.Fatal exits, resulting in false SA4006 warnings.
hooks/test/test_test.go:86
FunctionTestFieldClashWithCaller
(t *testing.T)
json_formatter_test.go:371
FunctionTestFieldClashWithLevel
(t *testing.T)
json_formatter_test.go:95
FunctionTestFieldClashWithMsg
(t *testing.T)
json_formatter_test.go:76
FunctionTestFieldClashWithRemappedFields
(t *testing.T)
json_formatter_test.go:114
FunctionTestFieldClashWithTime
(t *testing.T)
json_formatter_test.go:53
FunctionTestFieldDoesNotClashWithCaller
(t *testing.T)
json_formatter_test.go:351
FunctionTestFieldsInNestedDictionary
(t *testing.T)
json_formatter_test.go:168
FunctionTestFormatting
(t *testing.T)
text_formatter_test.go:19
FunctionTestGetSetLevelRace
(t *testing.T)
logrus_test.go:602
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
← previousnext →301–400 of 506, ranked by callers