MCPcopy Create free account

hub / github.com/sirupsen/logrus / types & classes

Types & classes65 in github.com/sirupsen/logrus

↓ 3 callersTypeAliasLevel
Level type nolint:recvcheck // the methods of "Entry" use pointer receiver and non-pointer receiver.
logrus.go:15
↓ 2 callersTypeAliasLevel
Level adapts a [logrus.Level] to a [slog.Leveler] using the default Logrus-to-slog level mapping: - [logrus.TraceLevel] -> [slog.LevelDebug] - 4 - [l
hooks/slog/level.go:44
↓ 2 callersTypeAliasSlogLevel
SlogLevel adapts a [slog.Level] to a [Leveler] using the default slog-to-Logrus level mapping: - [slog.LevelDebug] - 4 -> [logrus.TraceLevel] - [slog
hooks/slog/level.go:67
↓ 1 callersInterfaceExt1FieldLogger
Ext1FieldLogger is FieldLogger extended with Trace-level methods. New code should prefer the smallest applicable interface, such as [FieldLogger] or
logrus.go:224
↓ 1 callersTypeAliasbenchStringer
formatter_bench_test.go:12
↓ 1 callersTypeAliaschannelWriter
Implements io.Writer using channels for synchronization, so we can wait on the Entry.Writer goroutine to write in a non-racey way. This does assume th
logrus_test.go:723
↓ 1 callersFuncTypefuncError
func()
entry_test.go:35
↓ 1 callersTypeAliaspanicError
text_formatter_test.go:695
↓ 1 callersTypeAliaspanicStringer
text_formatter_test.go:699
InterfaceBufferPool
buffer_pool.go:16
InterfaceDebugLogger
DebugLogger provides convenience functions to log messages at level [DebugLevel].
logrus.go:186
StructDefaultFieldHook
example_default_field_value_test.go:9
StructEntry
Entry represents a single log event. It may be either an intermediate entry (created via WithField(s), WithContext, etc.) or a final entry that is emi
entry.go:53
StructErrorHook
hook_test.go:157
InterfaceErrorLogger
ErrorLogger provides convenience functions to log messages at level [ErrorLevel].
logrus.go:207
InterfaceFieldLogger
FieldLogger extends the [StdLogger] interface, generalizing the [Entry] and [Logger] types.
logrus.go:166
TypeAliasFieldMap
FieldMap allows customization of the key names for default fields.
json_formatter.go:14
TypeAliasFields
Fields type, used to pass to [WithFields].
logrus.go:10
InterfaceFormatter
Formatter is implemented by types that format log entries. It receives an [*Entry], which contains: - entry.Message: the message passed to logging me
formatter.go:39
StructGlobalHook
example_global_hook_test.go:11
StructHandler
Handler is a [slog.Handler] that writes records to a [logrus.Logger]. It is intended for bridging libraries or application code that log via slog int
hooks/slog/handler.go:37
StructHandlerOptions
HandlerOptions are options for a [Handler]. A zero HandlerOptions consists entirely of default values.
hooks/slog/handler.go:16
InterfaceHook
Hook describes hooks to be fired when logging on the logging levels returned from [Hook.Levels] on your implementation of the interface. Note that thi
hooks.go:8
StructHook
Hook is a hook that writes logs of specified LogLevels to specified Writer
hooks/writer/writer.go:10
StructHook
Hook is a hook designed for dealing with logs in test scenarios.
hooks/test/test.go:13
StructHook
Hook sends Logrus entries to slog. It is intended for bridging libraries or application code that log via Logrus into an existing slog logger, for ex
hooks/slog/slog.go:56
StructHookCallFunc
hook_test.go:237
StructHookOptions
HookOptions are options for a [Hook]. A zero HookOptions consists entirely of default values.
hooks/slog/slog.go:42
InterfaceInfoLogger
InfoLogger provides convenience functions to log messages at level [InfoLevel].
logrus.go:193
StructJSONFormatter
JSONFormatter formats logs into parsable JSON. Fields from [Entry.Data] are included in the JSON object together with the standard fields derived fro
json_formatter.go:31
TypeAliasLevelHooks
LevelHooks is an internal type for storing the hooks on a logger instance.
hooks.go:14
InterfaceLeveler
A Leveler provides a [logrus.Level] value. It is the Logrus counterpart of [slog.Leveler]. As [SlogLevel] itself implements Leveler, clients typical
hooks/slog/level.go:28
FuncTypeLogFunction
LogFunction For big messages, it can be more efficient to pass a function and only call it if the log level is actually enables rather than generating
logger.go:15
StructLogger
logger.go:17
StructLoggerLevel
LoggerLevel exposes a Logrus logger's configured level as a slog.Leveler. This lets slog handlers follow changes to the Logrus logger's level without
hooks/slog/level_example_test.go:15
StructModifyHook
hook_test.go:70
StructRecordingFormatter
RecordingFormatter is a test helper that implements Formatter and records information about the last formatted Entry. On every call to Format, it inc
hook_test.go:25
StructSingleLevelModifyHook
hook_test.go:118
InterfaceStdLogger
StdLogger is what your logrus-enabled library should take, that way it'll accept a stdlib logger ([log.Logger]) and a logrus logger. There's no standa
logrus.go:150
StructSyslogHook
SyslogHook to send logs via syslog.
hooks/syslog/syslog.go:14
StructTestHook
hook_test.go:36
StructTextFormatter
TextFormatter formats logs into text. Output is logfmt-like: key=value pairs separated by spaces. Fields from [Entry.Data] are included together with
text_formatter.go:32
InterfaceTraceLogger
TraceLogger provides convenience functions to log messages at level [TraceLevel].
logrus.go:214
InterfaceWarnLogger
WarnLogger provides convenience functions to log messages at level [WarnLevel].
logrus.go:200
StructX
level_test.go:13
StructbufferWithMu
writer_test.go:45
TypeAliascontextKeyType
entry_test.go:39
StructctxKey
hooks/slog/slog_test.go:272
StructctxKey
hooks/slog/handler_test.go:296
StructdefaultPool
buffer_pool.go:21
StructerrorHandler
hooks/slog/slog_test.go:97
TypeAliasfieldKey
json_formatter.go:11
StructlogrusLoggerContextKey
logrusLoggerContextKey is the context key used to track Logrus loggers a record has already traversed while being forwarded through slog adapters.
hooks/slog/slog.go:18
StructlvlPrefix
level.go:17
StructmutexWrap
logger.go:63
StructnilError
text_formatter_test.go:703
StructnilStringer
text_formatter_test.go:711
StructnilValueError
text_formatter_test.go:707
StructnilValueStringer
text_formatter_test.go:715
StructnoopHook
entry_test.go:21
StructnopBufferPool
entry_test.go:26
StructnopFormatter
entry_test.go:31
StructpanickyHook
entry_test.go:320
StructreentrantValue
reentrantValue is a type whose MarshalJSON method triggers another log call, which would deadlock if the logger mutex is held during formatting.
entry_test.go:532
StructtestBufferPool
logger_test.go:37