From d6ec0880ebec2f2e058dc297630c919c481e3865 Mon Sep 17 00:00:00 2001 From: Taylor Barstow Date: Fri, 12 Mar 2021 23:15:01 -0500 Subject: [PATCH] allowing logging configuration to be customized --- singer/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singer/logger.py b/singer/logger.py index 2113f22..9e7747d 100644 --- a/singer/logger.py +++ b/singer/logger.py @@ -6,7 +6,7 @@ def get_logger(): """Return a Logger instance appropriate for using in a Tap or a Target.""" this_dir, _ = os.path.split(__file__) - path = os.path.join(this_dir, 'logging.conf') + path = os.environ.get('SINGER_LOGGING_CONF') or os.path.join(this_dir, 'logging.conf') # See # https://docs.python.org/3.5/library/logging.config.html#logging.config.fileConfig # for a discussion of why or why not to set disable_existing_loggers