func (*loggerSuite) TestRootLogger(c *gc.C) { root := loggo.Logger{} c.Assert(root.Name(), gc.Equals, "<root>") c.Assert(root.IsErrorEnabled(), gc.Equals, true) c.Assert(root.IsWarningEnabled(), gc.Equals, true) c.Assert(root.IsInfoEnabled(), gc.Equals, false) c.Assert(root.IsDebugEnabled(), gc.Equals, false) c.Assert(root.IsTraceEnabled(), gc.Equals, false) }
func (s *LoggerSuite) TestRootLogger(c *gc.C) { root := loggo.Logger{} c.Check(root.Name(), gc.Equals, "<root>") c.Check(root.LogLevel(), gc.Equals, loggo.WARNING) c.Check(root.IsErrorEnabled(), gc.Equals, true) c.Check(root.IsWarningEnabled(), gc.Equals, true) c.Check(root.IsInfoEnabled(), gc.Equals, false) c.Check(root.IsDebugEnabled(), gc.Equals, false) c.Check(root.IsTraceEnabled(), gc.Equals, false) }