Project

General

Profile

Actions

Bug #11812

open

Implemented WLogSink but wthttp lib is still using the old logging method.

Added by Cees Beekhuis 10 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
07/07/2023
Due date:
% Done:

0%

Estimated time:

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


Related issues 1 (0 open1 closed)

Related to Improvements #11897: Hide logs of HTTP repliesClosedMatthias Van Ceulebroeck08/23/2023

Actions
Actions #1

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.

Actions #3

Updated by Matthias Van Ceulebroeck 10 days ago

Actions

Also available in: Atom PDF