Clarification of one-way property of hash functions
Your function is too easy. Given an hash value $h$, calculate $b^h$ and $b^{h+1}-1$, where b is the base of your logarithm.

Any value between $b^h$ and $b^{h+1}-1$ will be pre-image.