zanoni-mbdyn / blendyn

MBDyn (https://www.mbdyn.org/) graphical post-processor for blender (https://www.blender.org/)
GNU General Public License v2.0
40 stars 8 forks source link

Create a log file for report messages #14

Closed janga1997 closed 7 years ago

janga1997 commented 7 years ago

It took me longer than expected, but it turned out to be straightforward in the end. (Because of the hierarchy of all the files in Blendyn is top down from base.py, the logging instance created in base.py works for all the report messages in all the modules)

I have kept the extension of the report file to be created as .err for the time being. Do suggest a suitable extension for the same.

This is how report messages are stored in the log file.

Sun, 07 May 2017 12:54:29 - ERROR - The .log file selected does not contain MBDyn nodes definitions
Sun, 07 May 2017 12:54:40 - ERROR - MBDyn labels file not found...
Sun, 07 May 2017 12:54:45 - INFO - Scene MBDyn data cleared.