We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aaaaf0 commit b220f2cCopy full SHA for b220f2c
log/logger.go
@@ -4,6 +4,7 @@ type Logger interface {
4
Set(key string, value Valuer) Logger
5
With(ctxs ...Context) Logger
6
7
+ Debug() Logger
8
Info() Logger
9
Warn() Logger
10
Error() Logger
log/logger_test.go
@@ -166,6 +166,14 @@ func Test_ReplaceContextValue(t *testing.T) {
166
a.Contains(buffer.String(), "level=warn")
167
}
168
169
+func Test_Debug(t *testing.T) {
170
+ a, buffer, log := Setup(t)
171
+
172
+ log.Debug().Logf("message")
173
174
+ a.Contains(buffer.String(), "level=debug")
175
+}
176
177
func Test_Info(t *testing.T) {
178
a, buffer, log := Setup(t)
179
0 commit comments