MCPcopy Create free account

hub / github.com/go-logr/logr / functions

Functions353 in github.com/go-logr/logr

MethodError
(err error, msg string, kvList ...any)
funcr/funcr.go:186
MethodError
()
funcr/example/main.go:31
MethodError
(err error, msg string, kvs ...any)
examples/tab_logger.go:60
MethodError
()
examples/slog/main.go:36
FunctionExample
()
example_test.go:37
FunctionExampleFormatter
()
funcr/example_formatter_test.go:96
FunctionExampleFromSlogHandler
()
example_slogr_test.go:41
FunctionExampleLogger_Enabled
()
example_test.go:93
FunctionExampleLogger_Error
()
example_test.go:55
FunctionExampleLogger_Info
()
example_test.go:48
FunctionExampleLogger_V
()
example_test.go:84
FunctionExampleLogger_WithName
()
example_test.go:64
FunctionExampleLogger_WithValues
()
example_test.go:75
FunctionExampleMarshaler
()
example_marshaler_test.go:47
FunctionExampleMarshaler_secret
()
example_marshaler_secret_test.go:41
FunctionExampleNew
()
funcr/example_test.go:25
FunctionExampleNewJSON
()
funcr/example_test.go:36
FunctionExampleOptions
()
funcr/example_test.go:59
FunctionExampleOptions_maxLogDepth
()
funcr/example_test.go:114
FunctionExampleOptions_renderHooks
()
funcr/example_test.go:74
FunctionExamplePseudoStruct
()
funcr/example_test.go:102
FunctionExampleToSlogHandler
()
example_slogr_test.go:54
FunctionExampleUnderlier
()
funcr/example_test.go:47
FunctionFromContext
FromContext returns a Logger from ctx or an error if no Logger is found.
context_noslog.go:26
FunctionFromContextOrDiscard
FromContextOrDiscard returns a Logger from ctx. If no Logger is found, this returns a Logger that discards all log messages.
context_noslog.go:36
MethodFunc
(prefix, args string)
funcr/funcr_test.go:1091
MethodGetCallStackHelper
()
testr/testr.go:142
MethodGetDepth
GetDepth returns the current depth of this Formatter. This is useful for implementations which do their own caller attribution.
funcr/funcr.go:855
MethodGetUnderlying
GetUnderlying returns the Handler used by the LogSink.
slogsink.go:37
MethodGetUnderlying
()
slogsink.go:58
MethodGetUnderlying
()
testr/testr.go:83
MethodGetUnderlying
()
testr/testr.go:120
MethodGetUnderlying
()
testr/testr.go:156
MethodGetUnderlying
()
funcr/funcr.go:191
MethodHandle
(ctx context.Context, record slog.Record)
sloghandler.go:58
MethodHandle
(ctx context.Context, record slog.Record)
testimpls_slog_test.go:43
MethodHandle
(ctx context.Context, record slog.Record)
testimpls_slog_test.go:127
MethodHandle
2 for slog, 1 for SlogSink
funcr/slogsink.go:32
MethodInfo
(level int, msg string, kvList ...interface{})
slogsink.go:72
MethodInfo
(_ int, msg string, kvList ...interface{})
testimpls_slog_test.go:89
MethodInfo
(int, string, ...interface{})
testimpls_slog_test.go:123
MethodInfo
(lvl int, msg string, kv ...any)
testimpls_test.go:47
MethodInfo
(level int, msg string, kvList ...any)
testr/testr.go:146
MethodInfo
(level int, msg string, kvList ...any)
funcr/example_formatter_test.go:58
MethodInfo
(level int, msg string, kvList ...any)
funcr/funcr.go:181
MethodInit
(info RuntimeInfo)
slogsink.go:54
MethodInit
(RuntimeInfo)
testimpls_slog_test.go:76
MethodInit
(RuntimeInfo)
testimpls_slog_test.go:120
MethodInit
(ri RuntimeInfo)
testimpls_test.go:34
MethodInit
Init configures this Formatter from runtime info, such as the call depth imposed by logr itself. Note that this receiver is a pointer, so depth can be
funcr/funcr.go:844
MethodInit
Note that Init usually takes a pointer so it can modify the receiver to save runtime info.
examples/tab_logger.go:41
MethodIsNotFound
()
context.go:31
MethodMarshalLog
()
example_marshaler_test.go:36
MethodMarshalLog
()
example_marshaler_secret_test.go:30
MethodMarshalLog
()
benchmark/benchmark_test.go:150
MethodMarshalLog
()
funcr/funcr_test.go:57
MethodMarshalLog
()
funcr/funcr_test.go:72
MethodMarshalText
()
funcr/funcr_test.go:50
FunctionNewContext
NewContext returns a new Context, derived from ctx, which carries the provided Logger.
context_noslog.go:46
FunctionNewLogr
NewLogr returns a logr.Logger which writes to the slog.Handler. Deprecated: use [logr.FromSlogHandler] instead.
slogr/slogr.go:38
FunctionNewSlogHandler
NewSlogHandler returns a slog.Handler which writes to the same sink as the logr.Logger. Deprecated: use [logr.ToSlogHandler] instead.
slogr/slogr.go:45
MethodString
()
benchmark/benchmark_test.go:124
MethodString
()
funcr/funcr_test.go:61
MethodString
()
funcr/funcr_test.go:90
FunctionTestCallDepthConsistent
(t *testing.T)
logr_test.go:375
FunctionTestComparable
(t *testing.T)
discard_test.go:39
FunctionTestContext
(t *testing.T)
context_test.go:24
FunctionTestContextWithSlog
(t *testing.T)
context_slog_test.go:28
FunctionTestConversion
(t *testing.T)
slogr_test.go:170
FunctionTestDiscard
(t *testing.T)
discard_test.go:25
FunctionTestEnabled
(t *testing.T)
logr_test.go:59
FunctionTestEnabled
(t *testing.T)
funcr/funcr_test.go:1063
FunctionTestError
(t *testing.T)
logr_test.go:77
FunctionTestError
(t *testing.T)
funcr/funcr_test.go:1250
FunctionTestErrorWithCallDepth
(t *testing.T)
funcr/funcr_test.go:1558
FunctionTestErrorWithCaller
(t *testing.T)
funcr/funcr_test.go:1288
FunctionTestErrorWithName
(t *testing.T)
funcr/funcr_test.go:1386
FunctionTestErrorWithValues
(t *testing.T)
funcr/funcr_test.go:1488
FunctionTestFromSlogHandler
(t *testing.T)
slogr_test.go:61
FunctionTestInfo
(t *testing.T)
logr_test.go:155
FunctionTestInfo
(t *testing.T)
funcr/funcr_test.go:1099
FunctionTestInfoWithCallDepth
(t *testing.T)
funcr/funcr_test.go:1543
FunctionTestInfoWithCaller
(t *testing.T)
funcr/funcr_test.go:1137
FunctionTestInfoWithName
(t *testing.T)
funcr/funcr_test.go:1339
FunctionTestInfoWithValues
(t *testing.T)
funcr/funcr_test.go:1433
FunctionTestIsZero
(t *testing.T)
logr_test.go:337
FunctionTestLogger
(t *testing.T)
testr/testr_test.go:26
FunctionTestLogger
(t *testing.T)
testing/test_test.go:26
FunctionTestLoggerInterface
(t *testing.T)
testr/testr_test.go:51
FunctionTestLoggerTestingB
(_ *testing.T)
testr/testr_test.go:74
FunctionTestLoggerTestingF
(_ *testing.T)
testr/testr_fuzz_test.go:23
FunctionTestLogrSlogConversion
(t *testing.T)
funcr/slogsink_test.go:227
FunctionTestNew
(t *testing.T)
logr_test.go:27
FunctionTestNewCachesCallDepthInterface
(t *testing.T)
logr_test.go:50
FunctionTestOptionsLogInfoLevel
(t *testing.T)
funcr/funcr_test.go:1587
FunctionTestOptionsTimestampFormat
(t *testing.T)
funcr/funcr_test.go:1573
FunctionTestPretty
(t *testing.T)
funcr/funcr_test.go:289
FunctionTestRender
(t *testing.T)
funcr/funcr_test.go:907
FunctionTestRunSlogTests
(t *testing.T)
funcr/slogsink_test.go:195
FunctionTestRunSlogTestsOnEnlightenedSlogHandler
(t *testing.T)
slogr_test.go:150
← previousnext →201–300 of 353, ranked by callers