DisableTestLogging is an alias for SetUpTestLogging(LevelNone, KeyNone) This function will panic if called multiple times in the same test.
(tb testing.TB)
| 609 | // DisableTestLogging is an alias for SetUpTestLogging(LevelNone, KeyNone) |
| 610 | // This function will panic if called multiple times in the same test. |
| 611 | func DisableTestLogging(tb testing.TB) { |
| 612 | caller := "" |
| 613 | cleanup := setTestLogging(LevelNone, caller, KeyNone) |
| 614 | tb.Cleanup(cleanup) |
| 615 | } |
| 616 | |
| 617 | // SetUpBenchmarkLogging will set the given log level and key, and do log processing for that configuration, |
| 618 | // but discards the output, instead of writing it to console. |