Changeset f36e01f in sasview for sasview/logger_config.py
- Timestamp:
- Apr 11, 2017 6:08:57 AM (7 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b854587
- Parents:
- 09983d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/logger_config.py
r09983d1 rf36e01f 1 1 from __future__ import print_function 2 3 import logging 4 import logging.config 5 import os 6 import os.path 7 8 import pkg_resources 9 2 10 3 11 ''' … … 5 13 ''' 6 14 7 import logging8 import logging.config9 import os10 import os.path11 import pkg_resources12 15 13 16 class SetupLogger(object): … … 21 24 22 25 def config_production(self): 23 '''24 '''25 26 logger = logging.getLogger(self.name) 26 27 if not logger.root.handlers: … … 40 41 41 42 def _read_config_file(self): 42 '''43 '''44 43 if self.config_file is not None: 45 44 logging.config.fileConfig(self.config_file)
Note: See TracChangeset
for help on using the changeset viewer.