[SCIP] Redirecting scip output to a file

Stengel, Tobias tobias.stengel at siemens.com
Wed Aug 24 16:32:54 CEST 2022


Hello Rolf,

you have to call
SCIPmessagehdlrSetQuiet(SCIPgetMessagehdlr(scip), TRUE) 
Before 
SCIPsetMessagehdlrLogfile(scip,filename)

Tobias

-----Ursprüngliche Nachricht-----
Von: Scip <scip-bounces at zib.de> Im Auftrag von Rolf van der Hulst
Gesendet: Mittwoch, 24. August 2022 16:00
An: scip at zib.de
Betreff: [SCIP] Redirecting scip output to a file

Dear SCIP team,

I am using SCIP as part of an application. I can successfully log information to a file by using SCIPsetMessagehdlrLogfile(scip,filename).
However, SCIP still writes it's messages to stdout and stderr after I do this. Is there a way so that I can mute the output of SCIP to stdout and stderr, but still write the relevant information to a file using the message handler? As SCIP is called as part of another application, for which I want to use stderr and stdout, I cannot simply pipe the output into a file in this case.

Best,

Rolf

_______________________________________________
Scip mailing list
Scip at zib.de
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.zib.de%2Fmailman%2Flistinfo%2Fscip&data=05%7C01%7Ctobias.stengel%40siemens.com%7C3c42d5754f56450dacbf08da85da5a17%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637969470128887974%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9gP3ZQkrzCMBZHLMJNMbTSxyxjZmkJqADxQ8VzMwogc%3D&reserved=0



More information about the Scip mailing list