Fun fact: No one has ever been convicted under the Logan Act and only two people have been indicted (in 1802 and 1852).
It has been on the books since 1799.