how do we track Roth IRA basis

How do you track your Roth IRA basis ?  Does the Roth IRA contributions/distributions  get reported in 1099-R  or Form 5498 ?    And what is the best way to get the total  Roth IRA basis on a   Roth IRA account  vs a ROTH IRA conversion?    Also, if you contribute to a Roth IRA account (regular Roth IRA or  ROTH conversion) over the years , how do you get the total basis for each?