MCPcopy Create free account

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

Functions347 in github.com/go-logr/logr

↓ 1 callersFunctionWithLogMsgType
WithLogMsgType returns a copy of the logger with new settings for logging the message type. It returns the original logger if the underlying LogSink i
funcr/example_formatter_test.go:83
↓ 1 callersMethodWithSink
WithSink returns a copy of the logger with the new sink.
logr.go:235
↓ 1 callersFunctioncontainsOne
(hay string, needles ...string)
internal/testhelp/slog.go:72
↓ 1 callersFunctiondoSlog
(log logr.Logger)
funcr/example/main_slog.go:29
↓ 1 callersFunctionexpectEqual
(t *testing.T, expected, actual any)
slogr_test.go:187
↓ 1 callersFunctiongetCaller
(depth int)
logr_test.go:405
↓ 1 callersFunctionhelper2
(log logr.Logger, msg string)
testr/testr_test.go:85
↓ 1 callersFunctionhelper2
(log logr.Logger, msg string)
funcr/example/main.go:39
↓ 1 callersFunctionhelper2
(log logr.Logger, msg string)
testing/test_test.go:48
↓ 1 callersFunctioninvokeError
(e error)
funcr/funcr.go:692
↓ 1 callersFunctioninvokeMarshaler
(m logr.Marshaler)
funcr/funcr.go:674
↓ 1 callersFunctioninvokeStringer
(s fmt.Stringer)
funcr/funcr.go:683
↓ 1 callersFunctionisEmpty
(v reflect.Value)
funcr/funcr.go:654
↓ 1 callersFunctionkvListToAttrs
(kvList ...interface{})
slogsink.go:110
↓ 1 callersMethodlevelFromSlog
levelFromSlog adjusts the level by the logger's verbosity and negates it. It ensures that the result is >= 0. This is necessary because the result is
funcr/slogsink.go:99
↓ 1 callersFunctionlogError
Error logging implementation shared between testLogger and testLoggerInterface.
testr/testr.go:105
↓ 1 callersFunctionlogInfo
Info logging implementation shared between testLogger and testLoggerInterface.
testr/testr.go:95
↓ 1 callersFunctionlogrExample
(log logr.Logger)
funcr/example/main.go:58
↓ 1 callersFunctionlogrExample
(log logr.Logger)
examples/slog/main.go:78
↓ 1 callersFunctionlogrHelper
(log logr.Logger, msg string)
examples/slog/main.go:41
↓ 1 callersFunctionlogrHelper2
(log logr.Logger, msg string)
examples/slog/main.go:45
↓ 1 callersFunctionneedsEscape
needsEscape determines whether the input string needs to be escaped or not, without doing any allocations.
funcr/funcr.go:645
↓ 1 callersMethodprettyWithFlags
TODO: This is not fast. Most of the overhead goes here.
funcr/funcr.go:405
↓ 1 callersFunctionptrint
(i int)
funcr/funcr_test.go:33
↓ 1 callersMethodsinkWithCallDepth
sinkWithCallDepth adjusts the stack unwinding so that when Error or Info are called by Handle, code in slog gets skipped. This offset currently (Go 1
sloghandler.go:96
↓ 1 callersFunctionslogExample
(log *slog.Logger)
funcr/example/main_slog.go:34
↓ 1 callersFunctionslogExample
(log *slog.Logger)
examples/slog/main.go:91
↓ 1 callersFunctionslogHelper
(log *slog.Logger, msg string)
examples/slog/main.go:49
↓ 1 callersFunctionslogHelper2
(log *slog.Logger, msg string)
examples/slog/main.go:53
↓ 1 callersMethodsnippet
snippet produces a short snippet string of an arbitrary value.
funcr/funcr.go:740
↓ 1 callersMethodstartGroup
startGroup opens a new group scope (basically a sub-struct), which locks all the current saved values and starts them anew. This is needed to satisfy
funcr/funcr.go:769
FunctionBenchmarkDiscardLogError
(b *testing.B)
benchmark/benchmark_test.go:173
FunctionBenchmarkDiscardLogInfoOneArg
discard
benchmark/benchmark_test.go:148
FunctionBenchmarkDiscardLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_test.go:153
FunctionBenchmarkDiscardLogInfoWithValues
(b *testing.B)
benchmark/benchmark_test.go:158
FunctionBenchmarkDiscardLogV0Info
(b *testing.B)
benchmark/benchmark_test.go:163
FunctionBenchmarkDiscardLogV9Info
(b *testing.B)
benchmark/benchmark_test.go:168
FunctionBenchmarkDiscardWithName
(b *testing.B)
benchmark/benchmark_test.go:183
FunctionBenchmarkDiscardWithValues
(b *testing.B)
benchmark/benchmark_test.go:178
FunctionBenchmarkFuncrJSONLogError
(b *testing.B)
benchmark/benchmark_test.go:250
FunctionBenchmarkFuncrJSONLogInfoErrorValue
(b *testing.B)
benchmark/benchmark_test.go:275
FunctionBenchmarkFuncrJSONLogInfoMarshalerValue
(b *testing.B)
benchmark/benchmark_test.go:280
FunctionBenchmarkFuncrJSONLogInfoOneArg
(b *testing.B)
benchmark/benchmark_test.go:200
FunctionBenchmarkFuncrJSONLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_test.go:210
FunctionBenchmarkFuncrJSONLogInfoStringerValue
(b *testing.B)
benchmark/benchmark_test.go:270
FunctionBenchmarkFuncrJSONLogInfoWithValues
(b *testing.B)
benchmark/benchmark_test.go:220
FunctionBenchmarkFuncrJSONLogV0Info
(b *testing.B)
benchmark/benchmark_test.go:230
FunctionBenchmarkFuncrJSONLogV9Info
(b *testing.B)
benchmark/benchmark_test.go:240
FunctionBenchmarkFuncrLogError
(b *testing.B)
benchmark/benchmark_test.go:245
FunctionBenchmarkFuncrLogInfoOneArg
(b *testing.B)
benchmark/benchmark_test.go:195
FunctionBenchmarkFuncrLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_test.go:205
FunctionBenchmarkFuncrLogInfoWithValues
(b *testing.B)
benchmark/benchmark_test.go:215
FunctionBenchmarkFuncrLogV0Info
(b *testing.B)
benchmark/benchmark_test.go:225
FunctionBenchmarkFuncrLogV9Info
(b *testing.B)
benchmark/benchmark_test.go:235
FunctionBenchmarkFuncrWithCallDepth
(b *testing.B)
benchmark/benchmark_test.go:265
FunctionBenchmarkFuncrWithName
(b *testing.B)
benchmark/benchmark_test.go:260
FunctionBenchmarkFuncrWithValues
(b *testing.B)
benchmark/benchmark_test.go:255
FunctionBenchmarkSlogJSONLogError
(b *testing.B)
benchmark/benchmark_slog_test.go:109
FunctionBenchmarkSlogJSONLogInfoErrorValue
(b *testing.B)
benchmark/benchmark_slog_test.go:134
FunctionBenchmarkSlogJSONLogInfoMarshalerValue
(b *testing.B)
benchmark/benchmark_slog_test.go:139
FunctionBenchmarkSlogJSONLogInfoOneArg
(b *testing.B)
benchmark/benchmark_slog_test.go:84
FunctionBenchmarkSlogJSONLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_slog_test.go:89
FunctionBenchmarkSlogJSONLogInfoStringerValue
(b *testing.B)
benchmark/benchmark_slog_test.go:129
FunctionBenchmarkSlogJSONLogInfoWithValues
(b *testing.B)
benchmark/benchmark_slog_test.go:94
FunctionBenchmarkSlogJSONLogV0Info
(b *testing.B)
benchmark/benchmark_slog_test.go:99
FunctionBenchmarkSlogJSONLogV9Info
(b *testing.B)
benchmark/benchmark_slog_test.go:104
FunctionBenchmarkSlogJSONLogWithValues
(b *testing.B)
benchmark/benchmark_slog_test.go:114
FunctionBenchmarkSlogJSONWithCallDepth
(b *testing.B)
benchmark/benchmark_slog_test.go:124
FunctionBenchmarkSlogJSONWithName
(b *testing.B)
benchmark/benchmark_slog_test.go:119
FunctionBenchmarkSlogSinkLogError
(b *testing.B)
benchmark/benchmark_slog_test.go:59
FunctionBenchmarkSlogSinkLogInfoOneArg
slogSink wrapper of discard
benchmark/benchmark_slog_test.go:34
FunctionBenchmarkSlogSinkLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_slog_test.go:39
FunctionBenchmarkSlogSinkLogInfoWithValues
(b *testing.B)
benchmark/benchmark_slog_test.go:44
FunctionBenchmarkSlogSinkLogV0Info
(b *testing.B)
benchmark/benchmark_slog_test.go:49
FunctionBenchmarkSlogSinkLogV9Info
(b *testing.B)
benchmark/benchmark_slog_test.go:54
FunctionBenchmarkSlogSinkWithName
(b *testing.B)
benchmark/benchmark_slog_test.go:69
FunctionBenchmarkSlogSinkWithValues
(b *testing.B)
benchmark/benchmark_slog_test.go:64
MethodEnabled
(level int)
slogsink.go:69
MethodEnabled
(_ context.Context, level slog.Level)
sloghandler.go:55
MethodEnabled
(int)
testimpls_slog_test.go:79
MethodEnabled
(int)
testimpls_slog_test.go:122
MethodEnabled
(lvl int)
testimpls_test.go:40
MethodEnabled
Enabled checks whether an info message at the given level should be logged.
funcr/funcr.go:821
MethodEnabled
(level int)
examples/tab_logger.go:42
MethodError
(err error, msg string, kvList ...interface{})
slogsink.go:77
MethodError
()
context.go:27
MethodError
(_ error, msg string, kvList ...interface{})
testimpls_slog_test.go:81
MethodError
(error, string, ...interface{})
testimpls_slog_test.go:123
MethodError
(err error, msg string, kv ...any)
testimpls_test.go:53
MethodError
()
benchmark/benchmark_test.go:120
MethodError
(err error, msg string, kvList ...any)
testr/testr.go:151
MethodError
(err error, msg string, kvList ...any)
funcr/example_formatter_test.go:63
MethodError
()
funcr/funcr_test.go:65
MethodError
()
funcr/funcr_test.go:83
MethodError
()
funcr/funcr_test.go:97
MethodError
()
funcr/funcr_test.go:104
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:58
MethodError
()
examples/slog/main.go:37
← previousnext →101–200 of 347, ranked by callers