ConsoleTestWriter creates an option that correctly sets the file frame depth for testing.TB log.
(t TestingLog)
| 182 | |
| 183 | // ConsoleTestWriter creates an option that correctly sets the file frame depth for testing.TB log. |
| 184 | func ConsoleTestWriter(t TestingLog) func(w *ConsoleWriter) { |
| 185 | return func(w *ConsoleWriter) { |
| 186 | w.Out = TestWriter{T: t, Frame: 6} |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | // FilteredLevelWriter writes only logs at Level or above to Writer. |
| 191 | // |
no outgoing calls