Changeset 463e7ffc in sasview for sasview


Ignore:
Timestamp:
Apr 4, 2017 10:39:42 AM (7 years ago)
Author:
Ricardo Ferraz Leal <ricleal@…>
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:
9c0f3c17
Parents:
c155a16
Message:

getLogger with module name

Location:
sasview
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sasview/__init__.py

    rc155a16 r463e7ffc  
    33 
    44import logging 
    5 logger = logging.getLogger() 
     5logger = logging.getLogger(__name__) 
    66 
    77try: 
  • sasview/local_config.py

    rc155a16 r463e7ffc  
    88import logging 
    99 
    10 logger = logging.getLogger() 
     10logger = logging.getLogger(__name__) 
    1111 
    1212# Version of the application 
  • sasview/logging.ini

    rc155a16 r463e7ffc  
    88 
    99[formatter_simple] 
    10 format=%(name)s:%(levelname)s:%(message)s 
    11   
     10#format=%(asctime)s - %(name)s - %(levelname)s - %(message)s 
     11format=%(asctime)s - %(levelname)s : %(name)s:%(lineno)4d: %(message)s 
     12datefmt=%H:%M:%S 
     13 
    1214[formatter_detailed] 
    13 format=%(name)s: %(levelname)s %(module)s: %(lineno)d: %(message)s 
     15format=%(asctime)s:%(name)s:%(levelname)s: %(lineno)d: %(message)s 
    1416 
    1517############################################################################### 
  • sasview/sasview.py

    r6722fae r463e7ffc  
    2121logging.config.fileConfig(LOGGER_CONFIG_FILE, disable_existing_loggers=False) 
    2222logging.captureWarnings(True) 
    23 logger = logging.getLogger() 
     23logger = logging.getLogger(__name__) 
    2424 
    2525 
Note: See TracChangeset for help on using the changeset viewer.