bugpyFormex - Bugs: bug #39930, print log file of pyFormex


bug #39930: print log file of pyFormex

Submitter:  gianluca de santis <gianlucadesi>
Submitted:  Tue 03 Sep 2013 03:16:10 PM UTC
Category:  None Severity:  1 - Wish
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Tue 03 Sep 2013 03:36:26 PM UTC, comment #1: 

There is a menu item  Actions->Save Message Board that will save all the (current) output to the message board into a file.

I am not sure, but I think that Actions->Open log file allows you to append all further output to a file.

The stdout (if not redirected to message board) can be saved to a file by using standard redirection in the command line:

pyformex > pyformex.log

So all basic thinks are there, but if you find it useful, we could add some configuration variable that automates the use of these functions for the user, e.g.
log=True    # always save a log
logfile='path_to_my_logfile'    # use default file name if empty
logappend=True   # open log files in append mode

Benedict Verhegghe <bverheg>
Group administrator
Tue 03 Sep 2013 03:16:10 PM UTC, original submission:  

It would be nice to copy everything that has been printed by pyFormex during the execution of a script into a .log file. This could be called by a function like
at the end of a script.
Normally, fn would be the name of the script (fn.py)
Or maybe this functionality already exists?
Thanks a lot

gianluca de santis <gianlucadesi>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bverheg (Posted a comment)
  • -email is unavailable- added by gianlucadesi (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code