Fix LogAnalyzer scoping

Was https://github.com/diydrones/ardupilot/pull/1172 , rebased and re-targeted PR according to https://groups.google.com/forum/#!topic/drones-discuss/aCqTJrULGVc