@@ -0,0 +1,1363 @@
+import logging%0Aimport os%0Afrom testfixtures import log_capture%0Aimport unittest%0A%0Afrom structlog import wrap_logger%0A%0Afrom frontstage.logger_config import logger_initial_config%0A%0A%0Aclass TestLoggerConfig(unittest.TestCase):%0A%0A    def setUp(self):%0A        if os.environ.get('JSON_INDENT_LOGGING'):%0A            os.environ.pop('JSON_INDENT_LOGGING')%0A%0A    @log_capture()%0A    def test_success(self, l):%0A        os.environ%5B'JSON_INDENT_LOGGING'%5D = '1'%0A        logger_initial_config()%0A        logger = wrap_logger(logging.getLogger())%0A        logger.error('Test')%0A        message = l.records%5B0%5D.msg%0A        self.assertTrue('%7B%5Cn %22event%22: %22Test%22,%5Cn %22level%22: %22error%22,%5Cn %22service%22: %22ras-frontstage%22' in message)%0A%0A    @log_capture()%0A    def test_indent_type_error(self, l):%0A        logger_initial_config()%0A        logger = wrap_logger(logging.getLogger())%0A        logger.error('Test')%0A        message = l.records%5B0%5D.msg%0A        self.assertTrue('%7B%22event%22: %22Test%22, %22level%22: %22error%22, %22service%22: %22ras-frontstage%22' in message)%0A%0A    @log_capture()%0A    def test_indent_value_error(self, l):%0A        os.environ%5B'JSON_INDENT_LOGGING'%5D = 'abc'%0A        logger_initial_config()%0A        logger = wrap_logger(logging.getLogger())%0A        logger.error('Test')%0A        message = l.records%5B0%5D.msg%0A        self.assertTrue('%7B%22event%22: %22Test%22, %22level%22: %22error%22, %22service%22: %22ras-frontstage%22' in message)%0A

Add logger-config-tests (#238)