Adds init log functionality
Merge pull request #1 from Sharonwqx/add_log

Adds init log functionality