Bug #11812
closedImplemented 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 over 1 year 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 months ago
- Related to Improvements #11897: Hide logs of HTTP replies added
Updated by Matthias Van Ceulebroeck 7 months ago
- Assignee set to Romain Mardulyn
- Target version changed from 4.11.0 to 4.11.1
Updated by Matthias Van Ceulebroeck 7 months ago
- Status changed from InProgress to Rejected
- Assignee deleted (
Romain Mardulyn) - Target version deleted (
4.11.1)
This was resolved in the related ticket: #11897.