log mechanism