Re: [eclipse-clp-users] Possible to suppress file compiled messages

From: Paulo Moura <pmoura_at_...342...>
Date: Mon, 21 Feb 2022 18:54:35 +0000
Hi Joachim,

Thanks for the quick reply. I ended up using your second suggestion (set_stream/1). It works nicely.

Cheers,
Paulo

> On 21 Feb 2022, at 15:34, Joachim Schimpf <jschimpf_at_...311...> wrote:
> 
> On 21/02/2022 09:52, Paulo Moura wrote:
>> Hi,
>> I use ECLIPSe's compile/2 predicate to compile and load Prolog files. But with the default verbose:0 option (and with it explicit) I still get <file> compiled <bytes> bytes in <seconds> seconds log messages. Is there any way of suppressing these messages?
> 
> Hi Paulo,
> 
> the messages are printed by an event handler to the log_output stream.
> 
> To suppress, you can either disable the event handler with
> 
>  ?- set_event_handler(139, true/0).
> 
> or redirect the log_output stream to null
> 
>  ?- set_stream(log_output, null).
> 
> 
> Cheers,
> Joachim
> 
> 
> _______________________________________________
> ECLiPSe-CLP-Users mailing list
> ECLiPSe-CLP-Users_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users
> 

-----------------------------------------------------------------
Paulo Moura
Logtalk developer
Received on Mon Feb 21 2022 - 19:03:00 CET

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:20 CEST