Context returns a context with attached logger that emits all log entries to go testing.T log output.
(t testingT)
| 38 | |
| 39 | // Context returns a context with attached logger that emits all log entries to go testing.T log output. |
| 40 | func Context(t testingT) context.Context { |
| 41 | return ContextWithLevel(t, LevelDebug) |
| 42 | } |
| 43 | |
| 44 | // ContextForCleanup returns a context with attached logger that emits all log entries to go testing.T log output. |
| 45 | // This context is not canceled when the test finishes, so it is suitable to be used in cleanup functions. |