Add a lock log to log when it generates the log.
Add a lock log to log when it generates the log.