python/fusion question: how to save log info to a file (?)

42 views
Skip to first unread message

Henry Eck

unread,
Aug 7, 2020, 9:35:03 AM8/7/20
to mosek
is there a way to save the log information to a file (no doubt there is) ?  Currently printing to console as follows:

import sys
M.setLogHandler(sys.stdout) 

hesitate to ask but can't seem to find an example.  thanks. 

Utkarsh Detha

unread,
Aug 7, 2020, 2:50:45 PM8/7/20
to mosek
Hi,

Try something like this:

M.setLogHandler(open("test_log.txt","w"))

Regards,
Utkarsh

Henry Eck

unread,
Aug 9, 2020, 11:23:17 AM8/9/20
to mosek
Thanks :-)
Reply all
Reply to author
Forward
0 new messages