You can convert a logarithm from one base to another using the change of base formula: logb(x)=logk(b)logk(x) for any base k>0.
For example, to compute log2(100) using base 10: log2(100)=log10(2)log10(100)=0.3012≈6.64.
This formula shows why different bases only differ by a constant factor. The ratio logk(b)1 is constant, so O(log2n)=O(log10n) in Big-O notation.