Riverscapes / gcd

Geomorphic Change Detection For Windows
http://gcd.riverscapes.xyz
GNU General Public License v3.0
25 stars 5 forks source link

GCD Log File #256

Open philipbaileynar opened 6 years ago

philipbaileynar commented 6 years ago

We need a single, simple place (not in project file) jsut to dump time stamped error messages and other info. We have patterns from other tools for doing this. It needs to be simple, lightweight and not over complicate any of the GCD business logic code. But there are lots of messages in the code that the user never sees and we could store them.

joewheaton commented 6 years ago

And just to be annoying... I'd love to see a little console at the bottom of the dockable GCD Explorer panel that just shows a print out of this log as its being populated... (not a command line console, just a print out as its happening - i.e. a poor mans progress update).

For example, when I do some command like derive an FIS error surface, the log file and print out in this console might be something like:

Starting to Derive 'My Silly FIS' error surface for 'DEM 2015' survey...
Creating folder: Error001...
Calculating FIS from 'Slope Degrees' and 'Point Density' associated surfaces...
Saving 'My Silly FIS' to disc...
Calculating statistics....
Adding to Map...
Done in 23.2 seconds @ 3:31 PM on 5/1/2018.

The control could be scrollable and its just a running log in order. Most users will ignore it, but this becomes useful for trouble shooting... especially if I get:

Starting to Derive 'My Silly FIS' error surface for 'DEM 2015' survey...
Creating folder: Error001...
Calculating FIS from 'Slope Degrees' and 'Point Density' associated surfaces...
Exception Thrown (error message) @ 3:31 PM on 5/1/2018. Did not complete successfully.
Cleaning up to remove folder and entries from GCD project file.
joewheaton commented 6 years ago

A boy can dream can't he....? I think I just ensured this will get moved to the 'Future Version Ideas' milestone ;).