Example #1
0
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")
}
Example #2
0
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")
}