Hi.
I use StreamHandler to format log information and store it into a log
file. Now it works fine.
from logging import StreamHandler
file_handler = StreamHandler()
formatter = logging.Formatter("%(asctime)s.%(msecs)06d [%(levelname)s]
%(message)s",
"%d/%m/%Y %H:%M:%S")
file_handler.setFormatter(formatter)
app.logger.setLevel(logging.DEBUG)
app.logger.addHandler(file_handler)
But when I check log file, I found it is strange that it will record
two info in log file.
22/05/2015 09:21:21.000018 [DEBUG] Query() #first log
DEBUG:uwsgi_file__ws_uwsgi_webservice_my_test:Query() #second log
In my code, I only call:.
app.logger.debug('Query()')
So, The first log is I want, but second one is not need, how can I
disable this log.
Thanks!
Best Regards
Jerry
--
Rejoice,I Desire!
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi