 Long was a member of the Maryland House of Delegates from 1833 to 1835, 1839, 1844, and 1861.He served in the Maryland State Senate in 1860.Elected from the sixth district of Maryland as a Whig to the Twenty-ninth Congress, Long served from March 4, 1845, to March 3, 1847.