How to solve log problems