Project

General

Profile

A question about getting rid of certain type of logs

Added by Jason D over 2 years ago

Hi,

I have a timer which needs to be executed super frequently. It generates so many logs like below that is very noisy for me. Is there a way to completely remove both types from stderr? Any help is greatly appreciated

127.0.0.1 - - [2021-Sep-29 13:44:04.772] "POST /?wtd=CupPEXHRpGiu1o3k HTTP/1.1" 200 50
[2021-Sep-29 13:44:04.772] 16737 - [info] "WebRequest: took 0.496 ms"

Best Regards,
Jason


Replies (2)

RE: A question about getting rid of certain type of logs - Added by Bruce Toll over 2 years ago

Hi,

The access log messages (e.g. the POST message in your example) can be suppressed by starting the Wt application with a command-line option: --accesslog=-.

The "info" level messages (e.g. the WebRequest message in your example) can be suppressed using the wt_config.xml file, documented here: https://github.com/emweb/wt/blob/8c905b3a80448e2ba5845b02ff87869a949606c4/wt_config.xml.in#L212-L243. So, you might try: <log-config>* -info:WebRequest -debug</log-config>.

RE: A question about getting rid of certain type of logs - Added by Jason D over 2 years ago

Thanks so much Bruce, that is super helpful, have a nice day!

    (1-2/2)