Groups
Groups
Sign in
Groups
Groups
mosek
Conversations
About
Send feedback
Help
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 AM
8/7/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
8/7/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
8/9/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mosek
Thanks :-)
Reply all
Reply to author
Forward
0 new messages