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

 
 

bug #39930: print log file of pyFormex

Submitted by:  gianluca de santis <gianlucadesi>
Submitted on:  Tue 03 Sep 2013 03:16:10 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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
writeLog('fn.log')
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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1