gem/oq-engine — pull request #847 by arbeit (2012-08-23 08:29:48+00:00)
Title: Progress reporting feature completed

This branch completes the progress reporting feature. It introduces a custom log level (PROGRESS) and uses that to output all progress information to the
user.
Unless overridden by the user on the command line PROGRESS is also the default log level.

The output looks approximately as follows:

$ bin/openquake --run-hazard demos/simple_fault_demo_hazard/job.ini --exports xml
[2012-08-23 09:12:05 #32] ** pre_executing
[2012-08-23 09:12:05 #32] ** > initializing sources
[2012-08-23 09:12:06 #32] ** > initializing site model
[2012-08-23 09:12:06 #32] ** > initializing realizations
[2012-08-23 09:12:06 #32] ** executing
[2012-08-23 09:12:13 #32] ** > hazard 6% complete
[2012-08-23 09:12:13 #32] ** > hazard 13% complete
[2012-08-23 09:12:17 #32] ** > hazard 20% complete
[2012-08-23 09:12:18 #32] ** > hazard 27% complete
[2012-08-23 09:12:20 #32] ** > hazard 33% complete
[2012-08-23 09:12:20 #32] ** > hazard 40% complete
[2012-08-23 09:12:22 #32] ** > hazard 43% complete
[2012-08-23 09:12:26 #32] ** > hazard 50% complete
[2012-08-23 09:12:27 #32] ** > hazard 56% complete
[2012-08-23 09:12:30 #32] ** > hazard 63% complete
[2012-08-23 09:12:33 #32] ** > hazard 70% complete
[2012-08-23 09:12:34 #32] ** > hazard 77% complete
[2012-08-23 09:12:36 #32] ** > hazard 83% complete
[2012-08-23 09:12:36 #32] ** > hazard 90% complete
[2012-08-23 09:12:36 #32] ** > hazard 97% complete
[2012-08-23 09:12:36 #32] ** > hazard 100% complete
[2012-08-23 09:12:36 #32] ** post_executing
[2012-08-23 09:12:36 #32] ** post_processing
[2012-08-23 09:12:36 #32] ** export
[2012-08-23 09:12:36 #32] ** > 4 hazard curves exported to /tmp/xxx
[2012-08-23 09:12:36 #32] ** clean_up
[2012-08-23 09:12:36 #32] ** complete
Job 32 ran successfully

Related bug: https://bugs.launchpad.net/openquake/+bug/1007339