teuben / nemo

a Stellar Dynamics Toolbox (Not Everybody Must Observe)
https://astronemo.readthedocs.io
GNU General Public License v2.0
59 stars 42 forks source link

debug logging to a file #150

Open teuben opened 3 months ago

teuben commented 3 months ago

The current "debug=2" would show levels 2 and below to the screen. It can be cumbersome to redirect to a file, e.g.

   program ... debug=2  2>p2.log

so perhaps it might be useful to have an option "debug=2,p2.log" which effectively does the same

   program ... debug=2,p2.log

The danger of using pipes is now that the order of debug output can (and will) be out of order.