Create log function for Installer

Please merge this function for master branch!