log conversion method