File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -125,10 +125,15 @@ var (
125
125
// get any actual logging.
126
126
Log = log .Log
127
127
128
- // LoggerFromContext returns a logger with predefined values from a context.Context.
128
+ // LoggerFrom returns a logger with predefined values from a context.Context.
129
129
//
130
130
// This is meant to be used with the context supplied in a struct that satisfies the Reconciler interface.
131
- LoggerFromContext = log .FromContext
131
+ LoggerFrom = log .FromContext
132
+
133
+ // LoggerInto takes a context and sets the logger as one of its keys.
134
+ //
135
+ // This is meant to be used in reconcilers to enrich the logger within a context with additional values.
136
+ LoggerInto = log .IntoContext
132
137
133
138
// SetLogger sets a concrete logging implementation for all deferred Loggers.
134
139
SetLogger = log .SetLogger
You can’t perform that action at this time.
0 commit comments