We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40afcb7 commit 398e112Copy full SHA for 398e112
slog-handler-guide/guide.md
@@ -94,6 +94,11 @@ so it will sometimes produce invalid YAML.
94
For example, it doesn't quote keys that have colons in them.
95
We'll call it `IndentHandler` to forestall disappointment.
96
97
+A brief aside before we start: it is tempting to embed `slog.Handler` in your
98
+custom handler and implement only the methods that you need.
99
+Loggers and handlers are too tightly coupled for that to work. You should
100
+implement all four handler methods.
101
+
102
We begin with the `IndentHandler` type
103
and the `New` function that constructs it from an `io.Writer` and options:
104
0 commit comments