diff options
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r-- | wqflask/runserver.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index a61e4029..2a75faeb 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -11,12 +11,21 @@ from wqflask import app # # For more info see: http://www.cyberciti.biz/faq/iptables-block-port/ +#import logging +#logging.basicConfig(filename="/tmp/flask_gn_log", level=logging.INFO) +# +#_log = logging.getLogger("search") +#_ch = logging.StreamHandler() +#_log.addHandler(_ch) + import logging -logging.basicConfig(filename="/tmp/flask_gn_log", level=logging.INFO) +#from themodule import TheHandlerYouWant +file_handler = logging.FileHandler("/tmp/flask_gn_log") +file_handler.setLevel(logging.DEBUG) +app.logger.addHandler(file_handler) -_log = logging.getLogger("search") -_ch = logging.StreamHandler() -_log.addHandler(_ch) +import logging_tree +logging_tree.printout() app.run(host='0.0.0.0', use_debugger=False, |