Adds magnetometer logging to AndroidLogger.