He played the younger version of Ashton Kutcher's character, Evan, in The Butterfly Effect (2004). After making his small screen debut in a guest-starring role in 10-8: Officers on Duty (2003), he stared as Bobby (Robert) McCallister in the WB Network's series Jack & Bobby (2004), where he portrayed a teenager who will be a future president of the United States. After the show's cancellation in 2005, Logan returned to film, starring in the family adventure Hoot (2006). The next year, he played the son of Walter Sparrow (Jim Carrey) in the dark thriller The Number 23 (2007), and co-starred with Russell Crowe and Christian Bale in the well-reviewed Western remake 3:10 to Yuma (2007). His next two roles were playing a foul-mouthed private school student in the comedy Meet Bill (2007) and a younger version of actor George Hamilton in the period drama My One and Only (2009). Both were independent films that received limited releases. Also in 2009, Logan appeared with Gerard Butler in the R-rated action thriller Gamer (2009), as a teenager who controls Butler's character in a real-life video game.