add some code to print the log
Merge pull request #13 from samsam2310/master

add some code to print the log