basic logging now working but need more refinement to it!
Note never had any stack over flow issues been obeserved so i was totally off on the meaning of -2 error.
Now i understand completly that any -2 error is alwasy an abort from some code but it is not easy to find what code so it is better to use exception messages.
Need to now work on the web page for this data and other refinements.