Bug #11812
openImplemented WLogSink but wthttp lib is still using the old logging method.
0%
Description
Hi,
Using version 4.9.1 for adding my own log system.
I created my own implementation of WLogSink and call Wserver setCustomLogger.
These messages are going to my logger, but the POST/GET messages from wthttp still are written to the console.
How can I redirect this logging also to my WLogSink implementation?
$ ./mylogger
127.0.0.1 - - [2023-Jul-07 16:08:44.936] "GET / HTTP/1.1" 200 2072
127.0.0.1 - - [2023-Jul-07 16:08:44.956] "POST /?wtd=WGsdMHf7cqQS6HgI HTTP/1.1"
200 76
127.0.0.1 - - [2023-Jul-07 16:08:45.048] "GET /?wtd=DXBsHTqpBb2PvDEN&request=sty
le&page=1 HTTP/1.1" 200 88
127.0.0.1 - - [2023-Jul-07 16:08:45.057] "GET /?wtd=DXBsHTqpBb2PvDEN&sid=7704364
89&webGL=true&scrW=2560&scrH=1440&tz=120&tzS=Europe%2FAmsterdam&htmlHistory=true
&deployPath=%2F&request=script&rand=2868684396 HTTP/1.1" 200 16420
127.0.0.1 - - [2023-Jul-07 16:08:45.075] "GET /resources/themes/default/wt.css H
TTP/1.1" 304 0
127.0.0.1 - - [2023-Jul-07 16:08:45.077] "GET /resources/moz-transitions.css HTT
P/1.1" 304 0
127.0.0.1 - - [2023-Jul-07 16:08:45.175] "POST /?wtd=DXBsHTqpBb2PvDEN HTTP/1.1"
200 47
Updated by Matthias Van Ceulebroeck 10 months ago
- Target version set to 4.11.0
It indeed seems the custom logger isn't taken into account when the reply of the server is logged.
Updated by Matthias Van Ceulebroeck 10 days ago
- Related to Improvements #11897: Hide logs of HTTP replies added