Update the log mechanism, add more fields