adopt logging to boost 1.54 version and fix some simple logging errors
calculate LGZ before error checking and log it properly
Fix LGZ for negative residuals and prevent subsystems from creating their own logs