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
Method
Levels
()
hook_test.go:80
Method
Levels
()
hook_test.go:122
Method
Levels
()
hook_test.go:166
Method
Levels
()
hook_test.go:241
Method
Levels
()
example_global_hook_test.go:13
Method
Levels
Levels define on which log levels this hook would trigger
hooks/writer/writer.go:29
Method
Levels
()
hooks/test/test.go:54
Method
Levels
Levels always returns all levels, since slog allows controlling level enabling based on context.
hooks/slog/slog.go:94
Method
MarshalJSON
()
entry_test.go:475
Function
NewHandler
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
Function
NewHook
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
Function
NewSyslogHook
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
Function
Panic
Panic logs a message at level [PanicLevel] on the standard logger.
exported.go:119
Method
Panic
(args ...any)
logger.go:277
Method
Panic
(args ...any)
entry.go:457
Function
PanicFn
PanicFn logs a message from a func at level [PanicLevel] on the standard logger.
exported.go:165
Function
Panicf
Panicf logs a message at level [PanicLevel] on the standard logger.
exported.go:211
Method
Panicf
(format string, args ...any)
logger.go:208
Method
Panicf
(format string, args ...any)
entry.go:511
Function
Panicln
Panicln logs a message at level [PanicLevel] on the standard logger.
exported.go:257
Method
Panicln
(args ...any)
logger.go:376
Method
Panicln
(args ...any)
entry.go:565
Function
Print
Print logs a message at level [InfoLevel] on the standard logger.
exported.go:94
Method
Print
(args ...any)
logger.go:254
Method
Print
(args ...any)
entry.go:432
Function
PrintFn
PrintFn logs a message from a func at level [InfoLevel] on the standard logger.
exported.go:140
Function
Printf
Printf logs a message at level [InfoLevel] on the standard logger.
exported.go:186
Method
Printf
(format string, args ...any)
logger.go:185
Method
Printf
(format string, args ...any)
entry.go:490
Function
Println
Println logs a message at level [InfoLevel] on the standard logger.
exported.go:232
Method
Println
(args ...any)
logger.go:353
Method
Println
(args ...any)
entry.go:544
Method
Put
(*bytes.Buffer)
entry_test.go:424
Method
Put
(buf *bytes.Buffer)
buffer_pool.go:25
Method
Put
(buf *bytes.Buffer)
logger_test.go:47
Method
Read
(p []byte)
writer_test.go:56
Function
SetBufferPool
SetBufferPool allows to replace the default logrus buffer pool to better meet the specific needs of an application.
buffer_pool.go:35
Function
SetFormatter
SetFormatter sets the standard logger formatter.
exported.go:25
Method
String
()
formatter_bench_test.go:14
Function
TestAddHookRace
(t *testing.T)
hook_test.go:194
Function
TestAddHookRace2
(t *testing.T)
hook_test.go:215
Function
TestAllHooks
(t *testing.T)
hooks/test/test_test.go:15
Function
TestCallerReportingOverhead
Assertions for upper bounds to reporting overhead
logrus_test.go:497
Function
TestCanFireMultipleHooks
(t *testing.T)
hook_test.go:103
Function
TestConvertLevelToString
(t *testing.T)
logrus_test.go:517
Function
TestCustomSorting
(t *testing.T)
text_formatter_test.go:533
Function
TestCustomSorting_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
Function
TestDefaultFieldsAreNotPrefixed
(t *testing.T)
logrus_test.go:318
Function
TestDefer
(t *testing.T)
alt_exit_test.go:46
Function
TestDifferentLevelsGoToDifferentWriters
(t *testing.T)
hooks/writer/writer_test.go:13
Function
TestDisableLevelTruncation
(t *testing.T)
text_formatter_test.go:193
Function
TestDisableTimestampWithColoredOutput
(t *testing.T)
text_formatter_test.go:321
Function
TestDoubleLoggingDoesntPrefixPreviousFields
(t *testing.T)
logrus_test.go:391
Function
TestEntryDerivationPreservesCaller
TestEntryDerivationPreservesCaller verifies that derived entries retain explicitly set caller information.
entry_test.go:285
Function
TestEntryHooksPanic
(t *testing.T)
entry_test.go:264
Function
TestEntryLogPanicLevelDoesNotPanic
TestEntryLogPanicLevelDoesNotPanic verifies that generic Log methods treat PanicLevel as severity only and do not trigger panic behavior. Regression
entry_test.go:140
Function
TestEntryLogfLevel
(t *testing.T)
entry_test.go:374
Function
TestEntryLoggerMutationRace
(t *testing.T)
entry_test.go:388
Function
TestEntryPanic
(t *testing.T)
entry_test.go:223
Function
TestEntryPanicf
(t *testing.T)
entry_test.go:201
Function
TestEntryPanicln
(t *testing.T)
entry_test.go:179
Function
TestEntryReentrantLoggingDeadlock
TestEntryReentrantLoggingDeadlock verifies that logging from within a field's MarshalJSON (or similar serialization callback) does not deadlock. This
entry_test.go:483
Function
TestEntryWithContext
(t *testing.T)
entry_test.go:42
Function
TestEntryWithContextCopiesData
(t *testing.T)
entry_test.go:56
Function
TestEntryWithError
(t *testing.T)
entry_test.go:23
Function
TestEntryWithIncorrectField
(t *testing.T)
entry_test.go:335
Function
TestEntryWithTimeCopiesData
(t *testing.T)
entry_test.go:99
Function
TestEntryWriter
(t *testing.T)
logrus_test.go:717
Function
TestErrorHookShouldFireOnError
(t *testing.T)
hook_test.go:183
Function
TestErrorHookShouldntFireOnInfo
(t *testing.T)
hook_test.go:172
Function
TestErrorNotLost
(t *testing.T)
json_formatter_test.go:15
Function
TestErrorNotLostOnFieldNotNamedError
(t *testing.T)
json_formatter_test.go:34
Function
TestEscaping
(t *testing.T)
text_formatter_test.go:132
Function
TestEscaping_Interface
(t *testing.T)
text_formatter_test.go:151
Function
TestFatalWithAlternateExit
nolint:staticcheck // linter assumes logger.Fatal exits, resulting in false SA4006 warnings.
hooks/test/test_test.go:86
Function
TestFieldClashWithCaller
(t *testing.T)
json_formatter_test.go:371
Function
TestFieldClashWithLevel
(t *testing.T)
json_formatter_test.go:95
Function
TestFieldClashWithMsg
(t *testing.T)
json_formatter_test.go:76
Function
TestFieldClashWithRemappedFields
(t *testing.T)
json_formatter_test.go:114
Function
TestFieldClashWithTime
(t *testing.T)
json_formatter_test.go:53
Function
TestFieldDoesNotClashWithCaller
(t *testing.T)
json_formatter_test.go:351
Function
TestFieldsInNestedDictionary
(t *testing.T)
json_formatter_test.go:168
Function
TestFormatting
(t *testing.T)
text_formatter_test.go:19
Function
TestGetSetLevelRace
(t *testing.T)
logrus_test.go:602
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
← previous
next →
301–400 of 506, ranked by callers