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