Is there a LaTeX symbol for logs with a base other than 10 or e? For example, how

Is there a LaTeX symbol for logs with a base other than 10 or e? For example, how would I enter “log (base 2) of x”? I can’t seem to figure it out…