What kind of infection associated with discomfort in the penis would be treated with doxycycline?

Urethritis. Sometimes urinary tract infections that result in urethritis (cause penile pain) may be treated with doxycycline. Urethritis is commonly associated with sexually transmitted diseases but not in all cases. Also, prostatitis is occasionally treated with this medication.