Browse Source

Replace logging with better logger

master
Nils 3 years ago
parent
commit
16731085cf
  1. 2
      engine/__init__.py
  2. 2
      engine/api.py
  3. 2
      engine/main.py
  4. 2
      qtgui/constantsAndConfigs.py
  5. 2
      qtgui/mainwindow.py

2
engine/__init__.py

@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import logging; logging.info("import {}".format(__file__))
import logging; logger = logging.getLogger(__name__); logger.info("import")
#This file only exists as a reminder to _not_ create it again wrongly in the future.

2
engine/api.py

@ -20,6 +20,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import logging; logger = logging.getLogger(__name__); logger.info("import")
import template.engine.api #we need direct access to the module to inject data in the provided structures. but we also need the functions directly. next line:
from template.engine.api import *
import template.engine.ly2cbox as ly2cbox

2
engine/main.py

@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import logging; logging.info("import {}".format(__file__))
import logging; logger = logging.getLogger(__name__); logger.info("import")
#Python Standard Lib
import os.path

2
qtgui/constantsAndConfigs.py

@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import logging; logging.info("import {}".format(__file__))
import logging; logger = logging.getLogger(__name__); logger.info("import")
from template.qtgui.constantsAndConfigs import ConstantsAndConfigs as TemplateConstantsAndConfigs

2
qtgui/mainwindow.py

@ -20,7 +20,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import logging; logging.info("import {}".format(__file__))
import logging; logger = logging.getLogger(__name__); logger.info("import")
#Standard Library Modules
import os.path

Loading…
Cancel
Save