MCPcopy Create free account

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

Functions347 in github.com/go-logr/logr

FunctionExample
()
example_test.go:37
FunctionExampleFormatter
()
funcr/example_formatter_test.go:96
FunctionExampleFromSlogHandler
()
example_slogr_test.go:42
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:26
FunctionExampleNewJSON
()
funcr/example_test.go:37
FunctionExampleOptions
()
funcr/example_test.go:60
FunctionExampleOptions_maxLogDepth
()
funcr/example_test.go:115
FunctionExampleOptions_renderHooks
()
funcr/example_test.go:75
FunctionExamplePseudoStruct
()
funcr/example_test.go:103
FunctionExampleToSlogHandler
()
example_slogr_test.go:55
FunctionExampleUnderlier
()
funcr/example_test.go:48
FunctionFromContext
FromContext returns a Logger from ctx or an error if no Logger is found.
context_noslog.go:27
FunctionFromContextOrDiscard
FromContextOrDiscard returns a Logger from ctx. If no Logger is found, this returns a Logger that discards all log messages.
context_noslog.go:37
MethodFunc
(prefix, args string)
funcr/funcr_test.go:869
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:827
MethodGetUnderlying
GetUnderlying returns the Handler used by the LogSink.
slogsink.go:38
MethodGetUnderlying
()
slogsink.go:59
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:59
MethodHandle
(ctx context.Context, record slog.Record)
testimpls_slog_test.go:44
MethodHandle
(ctx context.Context, record slog.Record)
testimpls_slog_test.go:128
MethodHandle
2 for slog, 1 for SlogSink
funcr/slogsink.go:33
MethodInfo
(level int, msg string, kvList ...interface{})
slogsink.go:73
MethodInfo
(_ int, msg string, kvList ...interface{})
testimpls_slog_test.go:90
MethodInfo
(int, string, ...interface{})
testimpls_slog_test.go:124
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:55
MethodInit
(RuntimeInfo)
testimpls_slog_test.go:77
MethodInit
(RuntimeInfo)
testimpls_slog_test.go:121
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:816
MethodInit
Note that Init usually takes a pointer so it can modify the receiver to save runtime info.
examples/tab_logger.go:39
MethodIsNotFound
()
context.go:31
MethodMarshalLog
()
example_marshaler_test.go:36
MethodMarshalLog
()
example_marshaler_secret_test.go:30
MethodMarshalLog
()
benchmark/benchmark_test.go:133
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:47
FunctionNewLogr
NewLogr returns a logr.Logger which writes to the slog.Handler. Deprecated: use [logr.FromSlogHandler] instead.
slogr/slogr.go:39
FunctionNewSlogHandler
NewSlogHandler returns a slog.Handler which writes to the same sink as the logr.Logger. Deprecated: use [logr.ToSlogHandler] instead.
slogr/slogr.go:46
MethodString
()
benchmark/benchmark_test.go:107
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:29
FunctionTestConversion
(t *testing.T)
slogr_test.go:164
FunctionTestDiscard
(t *testing.T)
discard_test.go:25
FunctionTestEnabled
(t *testing.T)
logr_test.go:59
FunctionTestEnabled
(t *testing.T)
funcr/funcr_test.go:841
FunctionTestError
(t *testing.T)
logr_test.go:77
FunctionTestError
(t *testing.T)
funcr/funcr_test.go:1028
FunctionTestErrorWithCallDepth
(t *testing.T)
funcr/funcr_test.go:1336
FunctionTestErrorWithCaller
(t *testing.T)
funcr/funcr_test.go:1066
FunctionTestErrorWithName
(t *testing.T)
funcr/funcr_test.go:1164
FunctionTestErrorWithValues
(t *testing.T)
funcr/funcr_test.go:1266
FunctionTestFromSlogHandler
(t *testing.T)
slogr_test.go:62
FunctionTestInfo
(t *testing.T)
logr_test.go:155
FunctionTestInfo
(t *testing.T)
funcr/funcr_test.go:877
FunctionTestInfoWithCallDepth
(t *testing.T)
funcr/funcr_test.go:1321
FunctionTestInfoWithCaller
(t *testing.T)
funcr/funcr_test.go:915
FunctionTestInfoWithName
(t *testing.T)
funcr/funcr_test.go:1117
FunctionTestInfoWithValues
(t *testing.T)
funcr/funcr_test.go:1211
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:24
FunctionTestLogrSlogConversion
(t *testing.T)
funcr/slogsink_test.go:146
FunctionTestNew
(t *testing.T)
logr_test.go:27
FunctionTestNewCachesCallDepthInterface
(t *testing.T)
logr_test.go:50
FunctionTestOptionsLogInfoLevel
(t *testing.T)
funcr/funcr_test.go:1365
FunctionTestOptionsTimestampFormat
(t *testing.T)
funcr/funcr_test.go:1351
FunctionTestPretty
(t *testing.T)
funcr/funcr_test.go:247
FunctionTestRender
(t *testing.T)
funcr/funcr_test.go:685
FunctionTestRunSlogTests
(t *testing.T)
funcr/slogsink_test.go:114
FunctionTestRunSlogTestsOnSlogHandlerLogSink
(t *testing.T)
slogr_test.go:117
FunctionTestRunSlogTestsOnSlogHandlerSlogSink
(t *testing.T)
slogr_test.go:144
FunctionTestRunSlogTestsOnSlogSink
(t *testing.T)
internal/testhelp/slog_test.go:28
FunctionTestSanitize
(t *testing.T)
funcr/funcr_test.go:800
FunctionTestSlogSink
(t *testing.T)
funcr/slogsink_test.go:34
← previousnext →201–300 of 347, ranked by callers