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
Function
Example
()
example_test.go:37
Function
ExampleFormatter
()
funcr/example_formatter_test.go:96
Function
ExampleFromSlogHandler
()
example_slogr_test.go:42
Function
ExampleLogger_Enabled
()
example_test.go:93
Function
ExampleLogger_Error
()
example_test.go:55
Function
ExampleLogger_Info
()
example_test.go:48
Function
ExampleLogger_V
()
example_test.go:84
Function
ExampleLogger_WithName
()
example_test.go:64
Function
ExampleLogger_WithValues
()
example_test.go:75
Function
ExampleMarshaler
()
example_marshaler_test.go:47
Function
ExampleMarshaler_secret
()
example_marshaler_secret_test.go:41
Function
ExampleNew
()
funcr/example_test.go:26
Function
ExampleNewJSON
()
funcr/example_test.go:37
Function
ExampleOptions
()
funcr/example_test.go:60
Function
ExampleOptions_maxLogDepth
()
funcr/example_test.go:115
Function
ExampleOptions_renderHooks
()
funcr/example_test.go:75
Function
ExamplePseudoStruct
()
funcr/example_test.go:103
Function
ExampleToSlogHandler
()
example_slogr_test.go:55
Function
ExampleUnderlier
()
funcr/example_test.go:48
Function
FromContext
FromContext returns a Logger from ctx or an error if no Logger is found.
context_noslog.go:27
Function
FromContextOrDiscard
FromContextOrDiscard returns a Logger from ctx. If no Logger is found, this returns a Logger that discards all log messages.
context_noslog.go:37
Method
Func
(prefix, args string)
funcr/funcr_test.go:869
Method
GetCallStackHelper
()
testr/testr.go:142
Method
GetDepth
GetDepth returns the current depth of this Formatter. This is useful for implementations which do their own caller attribution.
funcr/funcr.go:827
Method
GetUnderlying
GetUnderlying returns the Handler used by the LogSink.
slogsink.go:38
Method
GetUnderlying
()
slogsink.go:59
Method
GetUnderlying
()
testr/testr.go:83
Method
GetUnderlying
()
testr/testr.go:120
Method
GetUnderlying
()
testr/testr.go:156
Method
GetUnderlying
()
funcr/funcr.go:191
Method
Handle
(ctx context.Context, record slog.Record)
sloghandler.go:59
Method
Handle
(ctx context.Context, record slog.Record)
testimpls_slog_test.go:44
Method
Handle
(ctx context.Context, record slog.Record)
testimpls_slog_test.go:128
Method
Handle
2 for slog, 1 for SlogSink
funcr/slogsink.go:33
Method
Info
(level int, msg string, kvList ...interface{})
slogsink.go:73
Method
Info
(_ int, msg string, kvList ...interface{})
testimpls_slog_test.go:90
Method
Info
(int, string, ...interface{})
testimpls_slog_test.go:124
Method
Info
(lvl int, msg string, kv ...any)
testimpls_test.go:47
Method
Info
(level int, msg string, kvList ...any)
testr/testr.go:146
Method
Info
(level int, msg string, kvList ...any)
funcr/example_formatter_test.go:58
Method
Info
(level int, msg string, kvList ...any)
funcr/funcr.go:181
Method
Init
(info RuntimeInfo)
slogsink.go:55
Method
Init
(RuntimeInfo)
testimpls_slog_test.go:77
Method
Init
(RuntimeInfo)
testimpls_slog_test.go:121
Method
Init
(ri RuntimeInfo)
testimpls_test.go:34
Method
Init
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
Method
Init
Note that Init usually takes a pointer so it can modify the receiver to save runtime info.
examples/tab_logger.go:39
Method
IsNotFound
()
context.go:31
Method
MarshalLog
()
example_marshaler_test.go:36
Method
MarshalLog
()
example_marshaler_secret_test.go:30
Method
MarshalLog
()
benchmark/benchmark_test.go:133
Method
MarshalLog
()
funcr/funcr_test.go:57
Method
MarshalLog
()
funcr/funcr_test.go:72
Method
MarshalText
()
funcr/funcr_test.go:50
Function
NewContext
NewContext returns a new Context, derived from ctx, which carries the provided Logger.
context_noslog.go:47
Function
NewLogr
NewLogr returns a logr.Logger which writes to the slog.Handler. Deprecated: use [logr.FromSlogHandler] instead.
slogr/slogr.go:39
Function
NewSlogHandler
NewSlogHandler returns a slog.Handler which writes to the same sink as the logr.Logger. Deprecated: use [logr.ToSlogHandler] instead.
slogr/slogr.go:46
Method
String
()
benchmark/benchmark_test.go:107
Method
String
()
funcr/funcr_test.go:61
Method
String
()
funcr/funcr_test.go:90
Function
TestCallDepthConsistent
(t *testing.T)
logr_test.go:375
Function
TestComparable
(t *testing.T)
discard_test.go:39
Function
TestContext
(t *testing.T)
context_test.go:24
Function
TestContextWithSlog
(t *testing.T)
context_slog_test.go:29
Function
TestConversion
(t *testing.T)
slogr_test.go:164
Function
TestDiscard
(t *testing.T)
discard_test.go:25
Function
TestEnabled
(t *testing.T)
logr_test.go:59
Function
TestEnabled
(t *testing.T)
funcr/funcr_test.go:841
Function
TestError
(t *testing.T)
logr_test.go:77
Function
TestError
(t *testing.T)
funcr/funcr_test.go:1028
Function
TestErrorWithCallDepth
(t *testing.T)
funcr/funcr_test.go:1336
Function
TestErrorWithCaller
(t *testing.T)
funcr/funcr_test.go:1066
Function
TestErrorWithName
(t *testing.T)
funcr/funcr_test.go:1164
Function
TestErrorWithValues
(t *testing.T)
funcr/funcr_test.go:1266
Function
TestFromSlogHandler
(t *testing.T)
slogr_test.go:62
Function
TestInfo
(t *testing.T)
logr_test.go:155
Function
TestInfo
(t *testing.T)
funcr/funcr_test.go:877
Function
TestInfoWithCallDepth
(t *testing.T)
funcr/funcr_test.go:1321
Function
TestInfoWithCaller
(t *testing.T)
funcr/funcr_test.go:915
Function
TestInfoWithName
(t *testing.T)
funcr/funcr_test.go:1117
Function
TestInfoWithValues
(t *testing.T)
funcr/funcr_test.go:1211
Function
TestIsZero
(t *testing.T)
logr_test.go:337
Function
TestLogger
(t *testing.T)
testr/testr_test.go:26
Function
TestLogger
(t *testing.T)
testing/test_test.go:26
Function
TestLoggerInterface
(t *testing.T)
testr/testr_test.go:51
Function
TestLoggerTestingB
(_ *testing.T)
testr/testr_test.go:74
Function
TestLoggerTestingF
(_ *testing.T)
testr/testr_fuzz_test.go:24
Function
TestLogrSlogConversion
(t *testing.T)
funcr/slogsink_test.go:146
Function
TestNew
(t *testing.T)
logr_test.go:27
Function
TestNewCachesCallDepthInterface
(t *testing.T)
logr_test.go:50
Function
TestOptionsLogInfoLevel
(t *testing.T)
funcr/funcr_test.go:1365
Function
TestOptionsTimestampFormat
(t *testing.T)
funcr/funcr_test.go:1351
Function
TestPretty
(t *testing.T)
funcr/funcr_test.go:247
Function
TestRender
(t *testing.T)
funcr/funcr_test.go:685
Function
TestRunSlogTests
(t *testing.T)
funcr/slogsink_test.go:114
Function
TestRunSlogTestsOnSlogHandlerLogSink
(t *testing.T)
slogr_test.go:117
Function
TestRunSlogTestsOnSlogHandlerSlogSink
(t *testing.T)
slogr_test.go:144
Function
TestRunSlogTestsOnSlogSink
(t *testing.T)
internal/testhelp/slog_test.go:28
Function
TestSanitize
(t *testing.T)
funcr/funcr_test.go:800
Function
TestSlogSink
(t *testing.T)
funcr/slogsink_test.go:34
← previous
next →
201–300 of 347, ranked by callers