Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
UmSenhorQualquer committed Jun 17, 2019
1 parent 550c4b3 commit 7243a1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pyforms_gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
conf += pyforms_settings

import logging

logging.basicConfig(
level=conf.PYFORMS_LOG_HANDLER_LEVEL,
format=conf.PYFORMS_LOG_FORMAT,
handlers=[] + \
[logging.FileHandler(conf.APP_LOG_HANDLER_FILE)] if conf.PYFORMS_LOG_HANDLER_FILE else [] + \
[logging.StreamHandler()]
handlers=[logging.StreamHandler()]
)
1 change: 0 additions & 1 deletion pyforms_gui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@
#PYFORMS_COLORDIALOGS_OPTIONS = QColorDialog.DontUseNativeDialog

import logging
PYFORMS_LOG_HANDLER_FILE = None
PYFORMS_LOG_HANDLER_LEVEL = logging.INFO
PYFORMS_LOG_FORMAT = '[%(levelname)-7s] %(name)-40s %(message)s'

0 comments on commit 7243a1c

Please sign in to comment.