This is not a true statement. Use the same values for x and a to see why.
I think what you might have meant is logax = 1/logxa, (where the a on the left-hand side and the x on the right-hand side are the bases of the logarithms, not the bases of an exponent) which is true and can be proven. There is a property of logarithms which states that we can change the base of a logarithm to 10 or e, which are much easier to work with.
For any logarithm with any base, logyz = (log z)/(log y) = (ln z)/(ln y)
We can show this using simple numbers. Let's say y is 100 and z is 10. log10010 looks daunting, but we can change it to base 10 using this change-of-base formula:
log10010 = (log 10)/(log 100) = 1/2
When we rewrite the original log here, we are asked to find what exponent 100 is raised to in order to get 10. In fact, 1001/2 = 10, so the change-of-base formula works.
Now we can use this to prove the statement above, which is essentially what this change-of-base implies:
logax = (log x)/(log a) or logax = (ln x)/(ln a)
logxa = (log a)/(log x) or logxa = (ln a)/(ln x)
Regardless of which base we change it to, it is clear that these are inverses of each other, that is, logax = 1/logxa.