func (s *BenchmarksSuite) SetUpTest(c *gc.C) { loggo.ResetLogging() s.logger = loggo.GetLogger("test.writer") s.writer = &writer{} err := loggo.RegisterWriter("test", s.writer) c.Assert(err, gc.IsNil) }
func (s *LoggingSuite) setUp(c *gc.C) { loggo.ResetLogging() // Don't use the default writer for the test logging, which // means we can still get logging output from tests that // replace the default writer. loggo.RegisterWriter(loggo.DefaultWriterName, discardWriter{}) loggo.RegisterWriter("loggingsuite", &gocheckWriter{c}) err := loggo.ConfigureLoggers(logConfig) c.Assert(err, gc.IsNil) }
func (s *LoggingSuite) TearDownSuite(c *gc.C) { loggo.ResetLogging() }