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
↓ 1 callers
Method
writerScanner
writerScanner scans the input from the reader and writes it to the logger
writer.go:64
Function
BenchmarkBoolTextFormatter
(b *testing.B)
formatter_bench_test.go:108
Function
BenchmarkDummyLogger
(b *testing.B)
logger_bench_test.go:14
Function
BenchmarkDummyLoggerNoLock
(b *testing.B)
logger_bench_test.go:23
Function
BenchmarkEntry_ReportCaller_NoCaller
(b *testing.B)
entry_bench_test.go:119
Function
BenchmarkEntry_ReportCaller_NoCaller_Depth4
(b *testing.B)
entry_bench_test.go:160
Function
BenchmarkEntry_ReportCaller_WithCaller
(b *testing.B)
entry_bench_test.go:120
Function
BenchmarkEntry_ReportCaller_WithCaller_Depth4
(b *testing.B)
entry_bench_test.go:164
Function
BenchmarkEntry_WithError
(b *testing.B)
entry_bench_test.go:12
Function
BenchmarkEntry_WithField_Chain
(b *testing.B)
entry_bench_test.go:25
Function
BenchmarkEntry_WithFields
(b *testing.B)
entry_bench_test.go:47
Function
BenchmarkErrorTextFormatter
(b *testing.B)
formatter_bench_test.go:116
Function
BenchmarkLargeColoredTextFormatter
(b *testing.B)
formatter_bench_test.go:132
Function
BenchmarkLargeJSONFormatter
(b *testing.B)
formatter_bench_test.go:140
Function
BenchmarkLargeTextFormatter
(b *testing.B)
formatter_bench_test.go:124
Function
BenchmarkLoggerJSONFormatter
(b *testing.B)
logger_bench_test.go:97
Function
BenchmarkLoggerLog
(b *testing.B)
logger_bench_test.go:69
Function
BenchmarkLoggerTextFormatter
(b *testing.B)
logger_bench_test.go:101
Function
BenchmarkNumericTextFormatter
(b *testing.B)
formatter_bench_test.go:104
Function
BenchmarkOneBoolTextFormatter
(b *testing.B)
formatter_bench_test.go:100
Function
BenchmarkOneNumericTextFormatter
(b *testing.B)
formatter_bench_test.go:96
Function
BenchmarkOneStringTextFormatter
(b *testing.B)
formatter_bench_test.go:92
Function
BenchmarkSmallColoredTextFormatter
(b *testing.B)
formatter_bench_test.go:128
Function
BenchmarkSmallJSONFormatter
(b *testing.B)
formatter_bench_test.go:136
Function
BenchmarkSmallTextFormatter
(b *testing.B)
formatter_bench_test.go:120
Function
BenchmarkStringerTextFormatter
(b *testing.B)
formatter_bench_test.go:112
Function
BenchmarkZeroTextFormatter
(b *testing.B)
formatter_bench_test.go:88
Function
Debug
Debug logs a message at level [DebugLevel] on the standard logger.
exported.go:89
Method
Debug
(args ...any)
logger.go:246
Method
Debug
(args ...any)
entry.go:428
Function
DebugFn
DebugFn logs a message from a func at level [DebugLevel] on the standard logger.
exported.go:135
Function
Debugf
Debugf logs a message at level [DebugLevel] on the standard logger.
exported.go:181
Method
Debugf
(format string, args ...any)
logger.go:177
Method
Debugf
(format string, args ...any)
entry.go:482
Function
Debugln
Debugln logs a message at level [DebugLevel] on the standard logger.
exported.go:227
Method
Debugln
(args ...any)
logger.go:345
Method
Debugln
(args ...any)
entry.go:536
Method
Enabled
(context.Context, slog.Level)
hooks/slog/slog_test.go:101
Method
Error
(args ...any)
logger.go:268
Method
Error
(args ...any)
entry.go:448
Function
ErrorFn
ErrorFn logs a message from a func at level [ErrorLevel] on the standard logger.
exported.go:160
Function
Errorf
Errorf logs a message at level [ErrorLevel] on the standard logger.
exported.go:206
Method
Errorf
(format string, args ...any)
logger.go:199
Function
Errorln
Errorln logs a message at level [ErrorLevel] on the standard logger.
exported.go:252
Method
Errorln
(args ...any)
logger.go:367
Method
Errorln
(args ...any)
entry.go:556
Function
ExampleDefaultFieldHook
()
example_default_field_value_test.go:22
Function
ExampleGlobalHook
()
example_global_hook_test.go:22
Function
ExampleJSONFormatter_CallerPrettyfier
()
example_custom_caller_test.go:12
Function
ExampleLevel_dynamic
ExampleLevel_dynamic demonstrates using Level to share dynamic level configuration between Logrus and slog.
hooks/slog/level_example_test.go:25
Function
ExampleLogger_Writer_httpServer
()
writer_test.go:19
Function
ExampleLogger_Writer_stdlib
()
writer_test.go:35
Function
ExampleNewHandler
ExampleNewHandler demonstrates using slog alongside an existing Logrus logger.
hooks/slog/slog_example_test.go:16
Function
ExampleNewHandler_options
ExampleNewHandler_options demonstrates configuring source reporting and custom slog-to-Logrus level mapping. Logrus writes to stderr by default, so t
hooks/slog/slog_example_test.go:43
Function
ExampleNewHook
ExampleNewHook demonstrates forwarding existing Logrus logging to an slog logger, allowing applications to migrate their logging backend independently
hooks/slog/slog_example_test.go:71
Function
ExampleNewHook_migration
ExampleNewHook_migration demonstrates using both adapters while migrating from Logrus to slog. Records can cross the bridge without being forwarded ba
hooks/slog/slog_example_test.go:100
Function
Example_basic
()
example_basic_test.go:9
Function
Example_hook
An example on how to use a hook
example_hook_test.go:14
Function
Fatal
Fatal logs a message at level [FatalLevel] on the standard logger, then exits the process with status 1.
exported.go:125
Method
Fatal
(args ...any)
logger.go:272
Method
Fatal
(args ...any)
entry.go:452
Function
FatalFn
FatalFn logs a message from a func at level [FatalLevel] on the standard logger, then exits the process with status 1.
exported.go:171
Function
Fatalf
Fatalf logs a message at level [FatalLevel] on the standard logger, then exits the process with status 1.
exported.go:217
Method
Fatalf
(format string, args ...any)
logger.go:203
Method
Fatalf
(format string, args ...any)
entry.go:506
Function
Fatalln
Fatalln logs a message at level [FatalLevel] on the standard logger, then exits the process with status 1.
exported.go:263
Method
Fatalln
(args ...any)
logger.go:371
Method
Fatalln
(args ...any)
entry.go:560
Method
Fire
(entry *logrus.Entry)
entry_test.go:256
Method
Fire
(*logrus.Entry)
entry_test.go:419
Method
Fire
(e *logrus.Entry)
example_default_field_value_test.go:17
Method
Fire
(entry *Entry)
hook_test.go:40
Method
Fire
(entry *Entry)
hook_test.go:74
Method
Fire
(entry *Entry)
hook_test.go:161
Method
Fire
(e *Entry)
hook_test.go:245
Method
Fire
(e *logrus.Entry)
example_global_hook_test.go:17
Method
Fire
Fire will be called when some logging function is called with current hook It will format log entry to string and write it to appropriate writer
hooks/writer/writer.go:19
Method
Fire
(e *logrus.Entry)
hooks/test/test.go:47
Method
Fire
(entry *logrus.Entry)
hooks/syslog/syslog.go:35
Method
Format
(*logrus.Entry)
logger_bench_test.go:65
Method
Format
(entry *Entry)
hook_test.go:30
Method
Get
()
entry_test.go:423
Method
Get
()
buffer_pool.go:29
Method
Get
()
logger_test.go:42
Method
Handle
(context.Context, slog.Record)
hooks/slog/slog_test.go:105
Method
HasCaller
HasCaller reports whether this Entry contains caller information. Caller may be set explicitly, or populated at log time when [Logger.ReportCaller] i
entry.go:297
Method
Info
(args ...any)
logger.go:250
Function
InfoFn
InfoFn logs a message from a func at level [InfoLevel] on the standard logger.
exported.go:145
Function
Infof
Infof logs a message at level [InfoLevel] on the standard logger.
exported.go:191
Method
Infof
(format string, args ...any)
logger.go:181
Function
Infoln
Infoln logs a message at level [InfoLevel] on the standard logger.
exported.go:237
Method
Infoln
(args ...any)
logger.go:349
Function
IsLevelEnabled
IsLevelEnabled checks if logging for the given level is enabled for the standard logger.
exported.go:46
Method
Level
()
hooks/slog/level_example_test.go:19
Method
Level
Level returns l mapped to the corresponding slog level.
hooks/slog/level.go:47
Method
Level
Level returns l mapped to the corresponding Logrus level.
hooks/slog/level.go:70
Method
Levels
()
entry_test.go:252
Method
Levels
()
entry_test.go:418
Method
Levels
()
example_default_field_value_test.go:13
Method
Levels
()
hook_test.go:45
← previous
next →
201–300 of 506, ranked by callers