<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Martin</p>
<p>Try to run pywps from the github it has less bugs and less
issues</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/geopython/pywps-flask">https://github.com/geopython/pywps-flask</a></p>
<p>You have an example of logging<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/PyWPS/pywps-workshop/blob/master/processes/total_length_logging.py">https://github.com/PyWPS/pywps-workshop/blob/master/processes/total_length_logging.py</a><br>
</p>
You need to get the logger <br>
<br>
import logging<br>
LOGGER = logging.getLogger('PYWPS')<br>
LOGGER.info('Adquired logger inside total_length.py')<br>
<br>
<span class="pl-c1">LOGGER</span>.info(<span class="pl-s"><span
class="pl-pds">"</span></span><span id="result_box"
class="short_text" lang="iw"><span class="">אני לא אוהב יום שני</span></span>")
<br>
<br>
The configuration level=INFO should be ok<br>
<br>
Jorge<br>
<br>
<br>
<div class="moz-cite-prefix">On 20-11-17 11:09, Martin Landa wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+Ei1Oehg3w+xigjM_zi-dEUmg4-t7wsLMYTRb3NmdWkOJhLnQ@mail.gmail.com">
<pre wrap="">Hi,
I wanted to ask how properly log processes. I put to my code
logging.info(...)
checked configuration
level=INFO
But none of process log messages (only those coming from pywps lib
itself) are printed to log file/db. Using pywps installed via pip
(4.0.0). What am I doing wrong? Thanks! Martin
</pre>
</blockquote>
<br>
</body>
</html>