MCPcopy Create free account

hub / github.com/go-logr/logr / types & classes

Types & classes79 in github.com/go-logr/logr

↓ 5 callersTypeAliasPseudoStruct
PseudoStruct is a list of key-value pairs that gets logged as a struct.
funcr/funcr.go:261
↓ 1 callersTypeAliasforLog
example_marshaler_test.go:41
↓ 1 callersTypeAliassubstr
Will be handled via reflection instead of type assertions.
funcr/funcr_test.go:31
InterfaceCallDepthLogSink
CallDepthLogSink represents a LogSink that knows how to climb the call stack to identify the original call site and can offset the depth by a specifie
logr.go:465
InterfaceCallStackHelperLogSink
CallStackHelperLogSink represents a LogSink that knows how to climb the call stack to identify the original call site and can skip intermediate helper
logr.go:497
StructCaller
Caller represents the original call site for a log line, after considering logr.Logger.WithCallDepth and logr.Logger.WithCallStackHelper. The File an
funcr/funcr.go:707
StructClient
examples/usage_example.go:60
StructComplexObjectRef
ComplexObjectRef contains more fields than it wants to get logged.
example_marshaler_secret_test.go:24
StructController
examples/usage_example.go:101
StructFormatter
Formatter is an opaque struct which can be embedded in a LogSink implementation. It should be constructed with NewFormatter. Some of its methods direc
funcr/funcr.go:238
StructList
funcr/example_test.go:116
InterfaceLogSink
LogSink represents a logging implementation. End-users will generally not interact with this type.
logr.go:426
StructLogger
Logger is an interface to an abstract logging implementation. This is a concrete type for performance reasons, but all the real work is passed on to
logr.go:249
InterfaceMarshaler
Marshaler is an optional interface that logged values may choose to implement. Loggers with structured output, such as JSON, should log the object ret
logr.go:508
TypeAliasMessageClass
MessageClass indicates which category or categories of messages to consider.
funcr/funcr.go:146
StructObject
examples/usage_example.go:54
StructObjectRef
ObjectRef references a Kubernetes object
example_marshaler_test.go:24
StructOptions
Options carries parameters which influence the way logs are generated.
testr/testr.go:34
StructOptions
Options carries parameters which influence the way logs are generated.
funcr/funcr.go:85
StructRuntimeInfo
RuntimeInfo holds information that the logr "core" library knows which LogSinks might want to know.
logr.go:411
InterfaceSlogSink
SlogSink is an optional interface that a LogSink can implement to support logging through the slog.Logger or slog.Handler APIs better. It then should
slogr.go:94
StructTembedjsontags
funcr/funcr_test.go:233
StructTembednonstruct
funcr/funcr_test.go:220
StructTembedstruct
funcr/funcr_test.go:215
StructTerror
benchmark/benchmark_test.go:118
StructTerror
Logging this should result in the Error() value.
funcr/funcr_test.go:95
StructTerrorpanic
Logging this should result in a panic.
funcr/funcr_test.go:102
InterfaceTestingT
TestingT is an interface wrapper around testing.T, testing.B and testing.F.
testr/testr.go:55
TypeAliasTinner1
funcr/funcr_test.go:226
TypeAliasTinner2
funcr/funcr_test.go:227
TypeAliasTinner3
funcr/funcr_test.go:228
TypeAliasTinner4
funcr/funcr_test.go:229
TypeAliasTinner5
funcr/funcr_test.go:230
TypeAliasTinner6
funcr/funcr_test.go:231
TypeAliasTinnerint
funcr/funcr_test.go:211
TypeAliasTinnermap
funcr/funcr_test.go:212
TypeAliasTinnerslice
funcr/funcr_test.go:213
StructTinnerstruct
funcr/funcr_test.go:208
StructTjsontagsArray
funcr/funcr_test.go:178
StructTjsontagsBool
funcr/funcr_test.go:118
StructTjsontagsComplex
funcr/funcr_test.go:158
StructTjsontagsFloat
funcr/funcr_test.go:148
StructTjsontagsInt
funcr/funcr_test.go:128
StructTjsontagsMap
funcr/funcr_test.go:198
StructTjsontagsPtr
funcr/funcr_test.go:168
StructTjsontagsSlice
funcr/funcr_test.go:188
StructTjsontagsString
funcr/funcr_test.go:108
StructTjsontagsUint
funcr/funcr_test.go:138
StructTmarshaler
benchmark/benchmark_test.go:131
StructTmarshaler
Logging this should result in the MarshalLog() value.
funcr/funcr_test.go:55
StructTmarshalerpanic
Logging this should result in a panic.
funcr/funcr_test.go:70
StructTrawjson
funcr/funcr_test.go:243
StructTstringer
benchmark/benchmark_test.go:105
StructTstringer
Logging this should result in the String() value.
funcr/funcr_test.go:77
StructTstringerpanic
Logging this should result in a panic.
funcr/funcr_test.go:88
InterfaceUnderlier
Underlier is implemented by the LogSink returned by NewFromLogHandler.
slogsink.go:36
InterfaceUnderlier
Underlier exposes access to the underlying testing.T instance. Since callers only have a logr.Logger, they have to know which implementation is in use
testr/testr.go:82
InterfaceUnderlier
Underlier exposes access to the underlying logging function. Since callers only have a logr.Logger, they have to know which implementation is in use,
funcr/funcr.go:70
InterfaceUnderlierInterface
UnderlierInterface exposes access to the underlying TestingT instance. Since callers only have a logr.Logger, they have to know which implementation i
testr/testr.go:90
Structcapture
funcr/funcr_test.go:865
StructcontextKey
contextKey is how we find Loggers in a context.Context. With Go < 1.21, the value is always a Logger value. With Go >= 1.21, the value can be a Logger
context.go:22
Structe
funcr/example/main.go:27
Structe
examples/slog/main.go:33
Structfnlogger
fnlogger inherits some of its LogSink implementation from Formatter and just needs to add some glue code.
funcr/funcr.go:161
StructnotFoundError
notFoundError exists to carry an IsNotFound method.
context.go:25
TypeAliasoutputFormat
outputFormat indicates which outputFormat to use.
funcr/funcr.go:251
StructpassthruLogSink
passthruLogSink is a trivial LogSink implementation, which implements the logr.LogSink methods in terms of a slog.Handler.
testimpls_slog_test.go:73
StructpassthruSlogSink
passthruSlogSink is a trivial SlogSink implementation, which stubs out the logr.LogSink methods and passes Logr.SlogSink thru to a slog.Handler.
testimpls_slog_test.go:117
Structpoint
point implements encoding.TextMarshaler and can be used as a map key.
funcr/funcr_test.go:41
StructpointErr
pointErr implements encoding.TextMarshaler but returns an error.
funcr/funcr_test.go:48
StructslogHandler
sloghandler.go:27
StructslogSink
slogsink.go:49
Structstdoutlogger
funcr/example_formatter_test.go:38
StructtabLogSink
tabLogSink is a sample logr.LogSink that logs to stderr. It's terribly inefficient, and is only a basic example.
examples/tab_logger.go:29
StructtestCallDepthLogSink
testimpls_test.go:77
StructtestLogSink
testLogSink is a trivial LogSink implementation, just for testing, which calls (optional) hooks on each method.
testimpls_test.go:21
StructtestSlogSink
testSlogSink is a trivial SlogSink implementation, just for testing, which calls (optional) hooks on each method.
testimpls_slog_test.go:32
Structtestlogger
This type exists to wrap and modify the method-set of testloggerInterface. In particular, it changes the GetUnderlying() method.
testr/testr.go:116
StructtestloggerInterface
testr/testr.go:127