Mercurial > repos > yating-l > gonramp_apollo_tools
comparison util/Logger.py @ 1:78af01d73add draft
planemo upload for repository https://github.com/Yating-L/suite_gonramp_apollo.git commit 9009fa8663038d2cb4a1c5130600a51f31f654a1-dirty
| author | yating-l |
|---|---|
| date | Tue, 28 Nov 2017 12:43:22 -0500 |
| parents | 1da8b9042af4 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:1da8b9042af4 | 1:78af01d73add |
|---|---|
| 30 for i in config["handlers"]: | 30 for i in config["handlers"]: |
| 31 if "filename" in config["handlers"][i]: | 31 if "filename" in config["handlers"][i]: |
| 32 config["handlers"][i]["filename"] = os.path.join(self.extra_files_path, config["handlers"][i]["filename"]) | 32 config["handlers"][i]["filename"] = os.path.join(self.extra_files_path, config["handlers"][i]["filename"]) |
| 33 logging.config.dictConfig(config) | 33 logging.config.dictConfig(config) |
| 34 else: | 34 else: |
| 35 logging.config.dictConfig(config) | |
| 35 logging.warn("Extra files path is not set. The log files will exist at current working directory instead of final output folder") | 36 logging.warn("Extra files path is not set. The log files will exist at current working directory instead of final output folder") |
| 36 else: | 37 else: |
| 37 logging.basicConfig(level=default_level) | 38 logging.basicConfig(level=default_level) |
| 38 logging.warn("Cannot find logging configuration file!\n") | 39 logging.warn("Cannot find logging configuration file!\n") |
| 39 | 40 |
