You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v2/TODO.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,11 @@
18
18
-[x] still not crazy about some of the names, in particular "conf" and "delegate". How about "sink" for the delegate handler?
19
19
-[x] add convenience methods for creating a handler *and* creating a new logger from it.
20
20
-[x] Add a convenience method for loading configuration from the environment, like in v1
21
-
-[] Add a way to register additional handlers to "encoder" values in config, and maybe change the name "Encoder" to "Handler", "DefaultDelegate", "DefaultSink", etc
21
+
-[x] Add a way to register additional handlers to "encoder" values in config, and maybe change the name "Encoder" to "Handler", "DefaultDelegate", "DefaultSink", etc
22
22
-[ ] Add an option to Config for v1 compatibility
23
23
- installs the DetailedErrors ReplaceAttr
24
24
- And what else?
25
-
-[] Review ConfigFromEnv(). Not sure if I should break that down more.
25
+
-[x] Review ConfigFromEnv(). Not sure if I should break that down more.
26
26
-[ ] Docs
27
27
-[ ] flumetest, and could this be replaced by https://github.com/neilotoole/slogt/blob/master/slogt.go
28
28
-[ ] LoggerWriter, could this be replaced by an off the shelf sink?
@@ -43,4 +43,4 @@
43
43
-[ ] A gofix style tool to migrate a codebase from v1 to v2, and migrating from Log() to LogCtx() calls?
44
44
-[x] I think the states need to be re-organized back into a parent-child graph, and sinks need to trickle down that tree. Creating all the handlers and states in conf isn't working the way it was intended. Rebuilding the leaf handlers is grouping the cached attrs wrong (need tests to verify this), and is also inefficient, since it creates inefficient calls to the sink's WithAttrs()
45
45
-[x] Add a middleware which supports ReplaceAttr. Could be used to add ReplaceAttr support to Handlers which don't natively support it
46
-
-[] We could then promote ReplaceAttr support to the root of Config. If the selected handler natively supports ReplaceAttr, great, otherwise we can add the middleware. To support this, change the way handlers are registered with Config, so that each registration provides a factory method for building the handler, which can take the Config object, and adapt it to the native options that handler supports.
46
+
-[x] We could then promote ReplaceAttr support to the root of Config. If the selected handler natively supports ReplaceAttr, great, otherwise we can add the middleware. To support this, change the way handlers are registered with Config, so that each registration provides a factory method for building the handler, which can take the Config object, and adapt it to the native options that handler supports.
0 commit comments