Logan Airport is my closest international airport. That’s not nearly enough time to change, unless yr flying over on Aer Lingus. Any other carrier will fly into Terminal E, and customs will probably take 2 hours minimum (the officers may also think yr a wrong 'un and take you in the back room for 4 hours of waiting around…) and then you would have to go to another terminal, then 30 minutes to go through security.
It’s a mess. Get the train or bus, it’s not too far.