func (s *ConfigSuite) TestLoggingConfigFromEnvironment(c *gc.C) { defer makeFakeHome(c).Restore() s.PatchEnvironment(osenv.JujuLoggingConfigEnvKey, "<root>=INFO") config := newTestConfig(c, nil) c.Assert(config.LoggingConfig(), gc.Equals, "<root>=INFO;unit=DEBUG") }
func (*ConfigSuite) TestLoggingConfigWithUnit(c *gc.C) { defer makeFakeHome(c).Restore() config := newTestConfig(c, testing.Attrs{ "logging-config": "<root>=WARNING;unit=INFO"}) c.Assert(config.LoggingConfig(), gc.Equals, "<root>=WARNING;unit=INFO") }