log convertion