Add log function.
Merge branch 'master' of https://github.com/sunLeung/Payserver.git