Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-logr/logr
/ functions
Functions
347 in github.com/go-logr/logr
⨍
Functions
347
◇
Types & classes
79
↓ 1 callers
Function
WithLogMsgType
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 callers
Method
WithSink
WithSink returns a copy of the logger with the new sink.
logr.go:235
↓ 1 callers
Function
containsOne
(hay string, needles ...string)
internal/testhelp/slog.go:72
↓ 1 callers
Function
doSlog
(log logr.Logger)
funcr/example/main_slog.go:29
↓ 1 callers
Function
expectEqual
(t *testing.T, expected, actual any)
slogr_test.go:187
↓ 1 callers
Function
getCaller
(depth int)
logr_test.go:405
↓ 1 callers
Function
helper2
(log logr.Logger, msg string)
testr/testr_test.go:85
↓ 1 callers
Function
helper2
(log logr.Logger, msg string)
funcr/example/main.go:39
↓ 1 callers
Function
helper2
(log logr.Logger, msg string)
testing/test_test.go:48
↓ 1 callers
Function
invokeError
(e error)
funcr/funcr.go:692
↓ 1 callers
Function
invokeMarshaler
(m logr.Marshaler)
funcr/funcr.go:674
↓ 1 callers
Function
invokeStringer
(s fmt.Stringer)
funcr/funcr.go:683
↓ 1 callers
Function
isEmpty
(v reflect.Value)
funcr/funcr.go:654
↓ 1 callers
Function
kvListToAttrs
(kvList ...interface{})
slogsink.go:110
↓ 1 callers
Method
levelFromSlog
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 callers
Function
logError
Error logging implementation shared between testLogger and testLoggerInterface.
testr/testr.go:105
↓ 1 callers
Function
logInfo
Info logging implementation shared between testLogger and testLoggerInterface.
testr/testr.go:95
↓ 1 callers
Function
logrExample
(log logr.Logger)
funcr/example/main.go:58
↓ 1 callers
Function
logrExample
(log logr.Logger)
examples/slog/main.go:78
↓ 1 callers
Function
logrHelper
(log logr.Logger, msg string)
examples/slog/main.go:41
↓ 1 callers
Function
logrHelper2
(log logr.Logger, msg string)
examples/slog/main.go:45
↓ 1 callers
Function
needsEscape
needsEscape determines whether the input string needs to be escaped or not, without doing any allocations.
funcr/funcr.go:645
↓ 1 callers
Method
prettyWithFlags
TODO: This is not fast. Most of the overhead goes here.
funcr/funcr.go:405
↓ 1 callers
Function
ptrint
(i int)
funcr/funcr_test.go:33
↓ 1 callers
Method
sinkWithCallDepth
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 callers
Function
slogExample
(log *slog.Logger)
funcr/example/main_slog.go:34
↓ 1 callers
Function
slogExample
(log *slog.Logger)
examples/slog/main.go:91
↓ 1 callers
Function
slogHelper
(log *slog.Logger, msg string)
examples/slog/main.go:49
↓ 1 callers
Function
slogHelper2
(log *slog.Logger, msg string)
examples/slog/main.go:53
↓ 1 callers
Method
snippet
snippet produces a short snippet string of an arbitrary value.
funcr/funcr.go:740
↓ 1 callers
Method
startGroup
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
Function
BenchmarkDiscardLogError
(b *testing.B)
benchmark/benchmark_test.go:173
Function
BenchmarkDiscardLogInfoOneArg
discard
benchmark/benchmark_test.go:148
Function
BenchmarkDiscardLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_test.go:153
Function
BenchmarkDiscardLogInfoWithValues
(b *testing.B)
benchmark/benchmark_test.go:158
Function
BenchmarkDiscardLogV0Info
(b *testing.B)
benchmark/benchmark_test.go:163
Function
BenchmarkDiscardLogV9Info
(b *testing.B)
benchmark/benchmark_test.go:168
Function
BenchmarkDiscardWithName
(b *testing.B)
benchmark/benchmark_test.go:183
Function
BenchmarkDiscardWithValues
(b *testing.B)
benchmark/benchmark_test.go:178
Function
BenchmarkFuncrJSONLogError
(b *testing.B)
benchmark/benchmark_test.go:250
Function
BenchmarkFuncrJSONLogInfoErrorValue
(b *testing.B)
benchmark/benchmark_test.go:275
Function
BenchmarkFuncrJSONLogInfoMarshalerValue
(b *testing.B)
benchmark/benchmark_test.go:280
Function
BenchmarkFuncrJSONLogInfoOneArg
(b *testing.B)
benchmark/benchmark_test.go:200
Function
BenchmarkFuncrJSONLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_test.go:210
Function
BenchmarkFuncrJSONLogInfoStringerValue
(b *testing.B)
benchmark/benchmark_test.go:270
Function
BenchmarkFuncrJSONLogInfoWithValues
(b *testing.B)
benchmark/benchmark_test.go:220
Function
BenchmarkFuncrJSONLogV0Info
(b *testing.B)
benchmark/benchmark_test.go:230
Function
BenchmarkFuncrJSONLogV9Info
(b *testing.B)
benchmark/benchmark_test.go:240
Function
BenchmarkFuncrLogError
(b *testing.B)
benchmark/benchmark_test.go:245
Function
BenchmarkFuncrLogInfoOneArg
(b *testing.B)
benchmark/benchmark_test.go:195
Function
BenchmarkFuncrLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_test.go:205
Function
BenchmarkFuncrLogInfoWithValues
(b *testing.B)
benchmark/benchmark_test.go:215
Function
BenchmarkFuncrLogV0Info
(b *testing.B)
benchmark/benchmark_test.go:225
Function
BenchmarkFuncrLogV9Info
(b *testing.B)
benchmark/benchmark_test.go:235
Function
BenchmarkFuncrWithCallDepth
(b *testing.B)
benchmark/benchmark_test.go:265
Function
BenchmarkFuncrWithName
(b *testing.B)
benchmark/benchmark_test.go:260
Function
BenchmarkFuncrWithValues
(b *testing.B)
benchmark/benchmark_test.go:255
Function
BenchmarkSlogJSONLogError
(b *testing.B)
benchmark/benchmark_slog_test.go:109
Function
BenchmarkSlogJSONLogInfoErrorValue
(b *testing.B)
benchmark/benchmark_slog_test.go:134
Function
BenchmarkSlogJSONLogInfoMarshalerValue
(b *testing.B)
benchmark/benchmark_slog_test.go:139
Function
BenchmarkSlogJSONLogInfoOneArg
(b *testing.B)
benchmark/benchmark_slog_test.go:84
Function
BenchmarkSlogJSONLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_slog_test.go:89
Function
BenchmarkSlogJSONLogInfoStringerValue
(b *testing.B)
benchmark/benchmark_slog_test.go:129
Function
BenchmarkSlogJSONLogInfoWithValues
(b *testing.B)
benchmark/benchmark_slog_test.go:94
Function
BenchmarkSlogJSONLogV0Info
(b *testing.B)
benchmark/benchmark_slog_test.go:99
Function
BenchmarkSlogJSONLogV9Info
(b *testing.B)
benchmark/benchmark_slog_test.go:104
Function
BenchmarkSlogJSONLogWithValues
(b *testing.B)
benchmark/benchmark_slog_test.go:114
Function
BenchmarkSlogJSONWithCallDepth
(b *testing.B)
benchmark/benchmark_slog_test.go:124
Function
BenchmarkSlogJSONWithName
(b *testing.B)
benchmark/benchmark_slog_test.go:119
Function
BenchmarkSlogSinkLogError
(b *testing.B)
benchmark/benchmark_slog_test.go:59
Function
BenchmarkSlogSinkLogInfoOneArg
slogSink wrapper of discard
benchmark/benchmark_slog_test.go:34
Function
BenchmarkSlogSinkLogInfoSeveralArgs
(b *testing.B)
benchmark/benchmark_slog_test.go:39
Function
BenchmarkSlogSinkLogInfoWithValues
(b *testing.B)
benchmark/benchmark_slog_test.go:44
Function
BenchmarkSlogSinkLogV0Info
(b *testing.B)
benchmark/benchmark_slog_test.go:49
Function
BenchmarkSlogSinkLogV9Info
(b *testing.B)
benchmark/benchmark_slog_test.go:54
Function
BenchmarkSlogSinkWithName
(b *testing.B)
benchmark/benchmark_slog_test.go:69
Function
BenchmarkSlogSinkWithValues
(b *testing.B)
benchmark/benchmark_slog_test.go:64
Method
Enabled
(level int)
slogsink.go:69
Method
Enabled
(_ context.Context, level slog.Level)
sloghandler.go:55
Method
Enabled
(int)
testimpls_slog_test.go:79
Method
Enabled
(int)
testimpls_slog_test.go:122
Method
Enabled
(lvl int)
testimpls_test.go:40
Method
Enabled
Enabled checks whether an info message at the given level should be logged.
funcr/funcr.go:821
Method
Enabled
(level int)
examples/tab_logger.go:42
Method
Error
(err error, msg string, kvList ...interface{})
slogsink.go:77
Method
Error
()
context.go:27
Method
Error
(_ error, msg string, kvList ...interface{})
testimpls_slog_test.go:81
Method
Error
(error, string, ...interface{})
testimpls_slog_test.go:123
Method
Error
(err error, msg string, kv ...any)
testimpls_test.go:53
Method
Error
()
benchmark/benchmark_test.go:120
Method
Error
(err error, msg string, kvList ...any)
testr/testr.go:151
Method
Error
(err error, msg string, kvList ...any)
funcr/example_formatter_test.go:63
Method
Error
()
funcr/funcr_test.go:65
Method
Error
()
funcr/funcr_test.go:83
Method
Error
()
funcr/funcr_test.go:97
Method
Error
()
funcr/funcr_test.go:104
Method
Error
(err error, msg string, kvList ...any)
funcr/funcr.go:186
Method
Error
()
funcr/example/main.go:31
Method
Error
(err error, msg string, kvs ...any)
examples/tab_logger.go:58
Method
Error
()
examples/slog/main.go:37
← previous
next →
101–200 of 347, ranked by callers