[Qgis-user] QGIS Server Log Stderr
pathmapper
pathmapper at posteo.de
Sun Jul 4 22:01:36 PDT 2021
Hmm, with QGIS_SERVER_LOG_STDERR 1 it works as long as I use the
standard
ErrorLog ${APACHE_LOG_DIR}/error.log
But if I change it to
ErrorLog ${APACHE_LOG_DIR}/qgisserver.log
a file ${APACHE_LOG_DIR}/qgisserver.log is created but the QGIS server
logs are still saved in ${APACHE_LOG_DIR}/error.log
Thomas, is this the same behaviour you are seeing?
On 02.07.2021 14:43, thomas wrote:
> Hi Björn,
>
> Am 02.07.21 um 10:58 schrieb pathmapper:
>> Hi Thomas,
>>
>> is QGIS_SERVER_LOG_FILE still set in your conf?
>>
>> Asking because QGIS_SERVER_LOG_STDERR has no effect when
>> QGIS_SERVER_LOG_FILE is set.
>>
>> Maybe doublecheck that you restarted Apache after these changes :)
>
> Sure, quadruple checked all that ;)
>
>>
>> With QGIS server 3.18.1 on Ubuntu LTR it's working as expected.
>
> After some research[1] I already suspected it to be a windows specific
> issue... :-/
>
> Or I'm making wrong assumptions about what stderr is, although[2]:
> "... The error log will also contain debugging output from CGI
> scripts. Any information written to stderr by a CGI script will be
> copied directly to the error log."
>
> [1]
> http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QGIS-server-landing-page-when-running-as-fastcgi-tp5456241p5456373.html
> [2] https://httpd.apache.org/docs/2.4/logs.html#errorlog
>
> Cheers
> Thomas
>
>
>>
>> Cheers,
>> Bjoern
>>
>> On 01.07.2021 15:11, Thomas Schüttenberg wrote:
>>> Hi there!
>>>
>>> Because file logging support with QGIS_SERVER_LOG_FILE is deprecated
>>> since QGIS 3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as
>>> described in the manual[1].
>>>
>>> Nevertheless the standard error log file I defined in my Apache
>>> configuration stays silent (Loglevel 0).
>>> So either I miss something in my config or QGIS_SERVER_LOG_STDERR
>>> does
>>> not work here.
>>>
>>> My QGIS server 3.18.2 and 3.16. are installed on a windows server
>>> 2019, btw. Mayby anyone of you is able to help me with their
>>> experience? Thanks!
>>>
>>> [1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html
>>>
>>> Cheers Thomas
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
More information about the Qgis-user
mailing list